VanillaReactLight & dark1.2K views
A compact pager that shows "Page X of N" with chevron Prev/Next controls and a thin progress bar that fills with page position — fully design-system agnostic.
Get the code for free
Create a free account to copy or download the full source.
Pagination component
A compact pager that shows "Page X of N" with chevron Prev/Next controls and a thin progress bar that fills with page position — fully design-system agnostic.
totalPages, currentPage, siblings) with clamped, bounds-safe navigationtransform: scaleX, exposed as a role="progressbar" with aria-valuenow/aria-valuetextaria-disabled (not removed from focus) with a ghosted borderless state at the first and last page<nav aria-label="Pagination"> landmark and aria-current="page" on the active labelprefers-reduced-motion<nav aria-label="Pagination">aria-current="page" on the "Page X of N" labelrole="status" aria-live="polite" region announces "Page X of N. {title}"role="progressbar" with aria-valuemin/max/now and aria-valuetext="Page X of N" kept in sync on every changearia-disabled="true" + a dimmed .is-disabled state while staying focusablearia-label ("Go to first/previous/next/last page")Open Component Guide (Compact Progress Pagination) in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the pagination is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.






Starting at $9.9 per month, billed annually
Don't miss a beat with our newsletter!
BUILDER
ABOUT US
© 2026 Atheros Intelligence Ltd.
:focus-visible with --ring outline on all interactive elementsprefers-reduced-motion: reduce disables all animations