Pagination

Page navigation with prev/next, page buttons, and ellipsis. Purely controlled.

Example

Page 5 of 20

Props

NameTypeDefaultRequiredDescription
pagenumberRequiredCurrent page number
totalPagesnumberRequiredTotal number of pages
onPageChange(page: number) => voidRequiredCalled when page changes
siblingCountnumber1NoNumber of sibling pages around current
boundaryCountnumber1NoNumber of pages at start/end
labelstring'Pagination'Noaria-label for the nav element

Accessibility

  • <nav> landmark with aria-label
  • aria-current="page" on current page button
  • aria-label on all page buttons ("Go to page N")
  • Prev/next disabled at boundaries
  • Ellipsis hidden from screen readers (aria-hidden)

Related Tokens

--pagination-gap--pagination-item--pagination-surface--pagination-on-surface--pagination-border