Theme
Pagination
Links to the pages of a long list.
Examples
Props
Pagination
Links to the pages of a long list.
| Prop | Type | Default | Description |
|---|---|---|---|
linkAs? | ElementType | "a" | The component that renders links: a framework's client-side link, or a plain anchor. The system itself knows no router. |
page | number | — | The current page, from 1. |
pageCount | number | — | |
href | (page: number) => string | — | The address of a page; every page is a real link, so it works without script and can be opened in a new tab. |
label? | string | "Pagination" | Names the navigation when a page has more than one. |
Accessibility
- Every page is a real link with an href, so it works without script.
- The current page is aria-current; numbers are read as "Page 5".