Pagination

A navigation control for moving through a paged collection. Rendered as a <nav aria-label="Pagination"> landmark wrapping Previous / Next controls and a run of numbered page buttons. The current page carries aria-current="page"; Previous and Next are disabled at the bounds. Large ranges collapse to first … window … last with inert ellipsis markers. Fully controlled via page / pageCount / onPageChange. Token-driven; light and dark automatic.

Controlled — short range

page = 1

Large range — ellipsis truncation

page = 50 of 100

First page — Previous disabled

Last page — Next disabled

Wider window (siblingCount=2, boundaryCount=2)

Single page — no truncation needed