mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
20 lines
434 B
Plaintext
20 lines
434 B
Plaintext
import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks';
|
|
import { Pagination } from './Pagination';
|
|
|
|
<Meta title="MDX|Pagination" component={Pagination} />
|
|
|
|
# Pagination
|
|
|
|
Component used for rendering a page selector below paginated content.
|
|
|
|
### Usage
|
|
|
|
```tsx
|
|
<div>
|
|
<div>Page 1 content</div>
|
|
<Pagination currentPage={1} numberOfPages={5} onNavigate={() => fetchPage(2)} />
|
|
</div>
|
|
```
|
|
|
|
<Props of={Pagination} />
|