Pagination 01
A precise numbered pagination for search results, with smart ellipsis collapsing and an underline marker that glides to the current page.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
Typography: Inter, with a system sans-serif fallback.
About Pagination 01
Pagination 01 is a pagination component in the Pagination Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 14, 2026.
- pagination
- numbered
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- ARIA in the markup: aria-label, aria-current.
- HTML elements used: nav, ul, button, svg.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px.
React + TypeScript + Tailwind CSS
3 files: Pagination01.jsx, Pagination01.types.ts, Pagination01.tailwind.css
- Configurable through 7 props: totalPages, page, defaultPage, onPageChange, siblingCount, label, className.
- Uses React hooks: useLayoutEffect, useRef, useState, useSyncExternalStore.
- ARIA in the markup: aria-current, aria-label.
- HTML elements used: nav, ul, button, svg.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm.