COMPONENTS
Pagination
One pagination class arranges native page links. Shared theme, size, density, shape, depth, borders, gap and optional glass styling inherit from the parent. Your server or application supplies page destinations.
Usage
Markup: nav.pagination > ol > li
Behaviour: Applications supply URLs, page counts and results.
- Use a labelled nav and ordered list. Give numeric links accessible names such as Page 2. Mark exactly one current page with aria-current="page".
- Unavailable controls are spans with aria-disabled="true", without href or tabindex. aria-disabled alone does not stop a link from navigating. Ellipses are text, not controls.
- CSS provides presentation only. It does not fetch results, calculate page counts, change the current page or restore focus after an application update.
- The live demo links navigate to this page's example anchors to demonstrate native navigation. Production markup should point to actual result pages.
- A decorative underline follows eligible links on hover or keyboard focus, then returns to the current page. The current page keeps its own styling throughout. CSS anchor positioning and anchor-scope enable this default enhancement; unsupported browsers retain ordinary pagination. Shared data-motion controls duration, and reduced motion removes transitions. The effect reserves ::after on the direct ol.
Component API and styling module · Inherited appearance settings
Current and unavailable pages
The current page and unavailable Previous control are plain spans. Demo links have real anchor destinations.
A longer range
Ellipses are passive text. Links wrap rather than stretching the page beyond its container.
Inherited glass and pill shape
The parent supplies material and shape; page links need no styling attributes.
Application URL pattern
Replace these sample paths with routes served by your application. This is code-only to avoid navigating to unimplemented demo routes.