Color
Typography
Spacing
Radius
Border
Opacity
Elevation
Blur
Avatar
Badge
Button
Checkbox
Input
ProgressBar
RadioButton
Separator
Slider
Switch
TextArea
TextLink
Accordion
Breadcrumb
ButtonGroup
Combobox
DropdownMenu
ListItem
Pagination
SegmentedControl
Select
Tooltip
Calendar
Card
CommandMenu
DatePicker
Dialog
Drawer
EmptyState
Footer
Form
NavigationBar
Sidebar
Skeleton
Table
Tabs
Toaster

Pagination

Moves between pages of results: previous/next arrows, the first and last page, the pages around the current one, and an ellipsis for the gaps.

Usage

Import the component and render it.

import { Pagination } from 'src/components/Pagination/Pagination';

<Pagination page={1} pageCount={10} />

Accessibility

Role: navigation (<nav aria-label="Pagination"> with a list of Pagination Items).

KeyAction
TabMoves through the arrows and pages
Enter / SpaceGoes to the focused page
  • Shows the first and last page, three consecutive pages around the current one, and an ellipsis for each gap (as in Figma: 1 2 3 … 10).
  • A gap of a single page shows that page instead of an ellipsis.

Composition

Use the following composition to build a Pagination:

Pagination
└── PaginationItem

PaginationItem

One element of a Pagination: a page number, a previous/next arrow, or an ellipsis for skipped pages. Only used inside Pagination.

PaginationItem
<PaginationItem />

Actions

Pass callbacks to respond to the component.

import { Pagination } from 'src/components/Pagination/Pagination';

<Pagination page={1} pageCount={10} onPageChange={(page) => console.log(page)} />
CallbackWhen
onPageChangeCalled with the new page.