Pagination
Page-number navigation for tables and lists, with smart ellipsis collapsing for large page counts.
API
All inputs and configuration options for zyra-pagination.
| Prop | Type | Default | Description |
|---|---|---|---|
totalPages | number | 1 | Total number of pages |
currentPage | number | 1 | The currently active page |
siblingCount | number | 1 | Page numbers shown on each side of the current page before collapsing |
size | 'sm' | 'md' | 'lg' | 'md' | Physical size of the pagination controls |
disabled | boolean | false | Disables all navigation controls |
Accessibility
Built to meet WCAG 2.0 AA. These notes cover the key ARIA, keyboard, and interaction behaviours.
- Rendered inside a nav element with aria-label="Pagination"
- The active page button has aria-current="page"