Pagination

zyra-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.

PropTypeDefaultDescription
totalPagesnumber1Total number of pages
currentPagenumber1The currently active page
siblingCountnumber1Page numbers shown on each side of the current page before collapsing
size'sm' | 'md' | 'lg''md'Physical size of the pagination controls
disabledbooleanfalseDisables 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"