Pagination
Splits large sets of content across multiple pages.
- Status
- ReadyBuild day 11 of 21
- Code
- In React
- Role
- Navigation
Usage
This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.
Pastes as editable layers. Shadows are not exported.
import { useState } from "react";
import { Pagination } from "@/ui";
export default function PaginationDemo() {
const [page, setPage] = useState<number>(1);
return <Pagination page={page} pageCount={10} onPageChange={setPage} />;
}Variants and states
Every specimen is the real component from src/ui, held in one state.
Pastes as editable layers. Shadows are not exported.
Props
- page
- number · default none
- Required. Current page, from 1.
- pageCount
- number · default none
- Required. Total pages.
- onPageChange
- (page) => void · default none
- Required.
- type
- "number" | "arrow" | "loadMore" · default "number"
- Page buttons, Page x of y, or one button.
- size
- "sm" | "md" · default "md"
- Item size 32 or 40.
- loadMoreLabel
- string · default "Load more"
- Text of the load more button.
Figma to code
Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.
- 🧰 Type
- type
- number, arrow, or loadMore.
- 📐 Size
- size
- sm or md.
- 🎯 State
- page
- Active is the current page. Disabled is the first and last arrow.
- Label
- None
- Page x of y is computed from page and pageCount.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- Every item is a button: Tab and Enter. Disabled arrows are skipped.
Screen readers
- A nav named Pagination. The current page has aria-current="page". Each button is named, such as Page 3.
- The ellipsis is hidden.
What you still need to do
- At 32px the sm item is under the 44px target size the rest of this system uses. Prefer md on touch screens.
- Update the content and move focus to it when the page changes.
When to use
Tables and lists with many items.
Do and don't
Do
- Show the current page and total clearly.
Don't
- Hide how many pages/items exist in total.
- Reset scroll position unexpectedly on page change.
- Use pagination for casual browsing, where infinite scroll fits better.
Related
4 of 28 other molecules, same role and ready ones first.
- Navigation BarThe main app navigation: a top bar on desktop, a bottom bar on mobile.Ready
- StepperShows progress through a task split into ordered steps.Ready
- TabsOrganizes content into separate views within the same context.Ready
- AccordionStacked sections that expand to reveal their content.Ready
Status reflects the component tracker snapshot of 29 October 2026.