Pagination
Markdown for agentsNumeric pagination with prev/next, ellipsis, and aria-current on the active page.
npx slipstream-ui@latest add paginationUsage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| page | number | — | Current page number (1-based). |
| pageCount | number | — | Total number of pages. |
| onPageChange | (page: number) => void | — | Called with the new page number. |
| siblings | number | 1 | How many page buttons to show around the current page. |
Accessibility
- nav[aria-label=Pagination] landmark.
- Active button has aria-current=page; disabled buttons at boundaries.