Skip to main content
ALEXY LINK

Pagination 04

Stage-based pagination for long multi-part documents, showing completed, current and upcoming sections along a labeled horizontal path.

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 04

Pagination 04 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
  • stages

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, aria-live, aria-atomic.
  • HTML elements used: nav, ol, button, svg.
  • Keyboard keys handled: ArrowLeft, ArrowRight, Home, End.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive CSS breakpoints at 640px.

React + TypeScript + Tailwind CSS

3 files: Pagination04.jsx, Pagination04.types.ts, Pagination04.tailwind.css

  • Configurable through 6 props: sections, page, defaultPage, onPageChange, label, className.
  • Uses React hooks: useLayoutEffect, useRef, useState.
  • ARIA in the markup: aria-label, aria-current, aria-live, aria-atomic.
  • HTML elements used: nav, ol, button, svg.
  • Keyboard keys handled: ArrowLeft, ArrowRight, Home, End.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm.
View all Pagination Components (10)