Ask Natuna

Ask about the design system

Hi, I am Natuna.

Ask me about the design system: components, tokens, statuses, and how to use them.

Natuna can be wrong. The docs are the source of truth.

Skip to content
  • IntroductionPage
  • Ask NatunaAsk about the design systemPage
  • FoundationColor, type, number, effectPage
  • Components overviewPage
  • ThemesLight and dark modePage
  • NamingProperty and page namesPage
  • Privacy statementPage
  • Text-safe stepsFirst AA and AAA step per color rampSection
  • AccessibilityWCAG 2.2 AAA rulesSection
  • Dark modeThemesSection
  • Using it todayFigma file and React codeSection
  • Component statusDesign status and In ReactSection

Arrow keys to move, Enter to open, Esc to close.

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.

size sm
size md

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.

4 of 28 other molecules, same role and ready ones first.

See all components

Status reflects the component tracker snapshot of 29 October 2026.