Skip to content

Navigation

Pagination

Page navigation with first/last and ellipsis truncation.

stableNo JS requiredBuilt on <nav>hydrateless/pagination.css

Page navigation with first/last anchors and ellipsis truncation. It is a semantic <nav> wrapping a list of links. CSS-only.

Pagination

Live

Props

The framework bindings expose these props (and forward the rest to the root element).

PropTypeDefaultDescription
pagenumberCurrent page (1-based).
countnumberTotal number of pages.
onPageChange(page: number) => voidFires when a page link is chosen.

CSS variables

Override these on any ancestor to theme the component. See the theme studio to preview changes live.

CSS variableUsed for
--hl-primaryActive page background.
--hl-surface-2Hovered item background.
--hl-radius-mdItem corner radius.

Accessibility

  • Label the <nav> with aria-label="Pagination".
  • Mark the active page with aria-current="page"; give the arrows accessible labels.

Released under the MIT License.