Zephora UI

Navigation

Pagination

Page navigation with sibling/boundary windows, ellipsis collapsing, optional first/last buttons and three sizes.

Import

import { Pagination } from "@zephora/react";

Examples

Basic

Controlled

Control the current page with `page` + `onPageChange`.

Page 1 of 20

Windows and sizes

`siblingCount` and `boundaryCount` shape the visible window; `size` scales the buttons.

API

Pagination props

PropTypeDefaultDescription
count *numberTotal number of pages.
pagenumberControlled current page (1-based).
defaultPagenumber1Initial page when uncontrolled.
onPageChange(page: number) => voidCalled with the next page number.
siblingCountnumber1Pages shown on each side of the current page.
boundaryCountnumber1Pages always shown at the start and end.
showFirstLastbooleanfalseShow first/last page buttons.
size"sm" | "md" | "lg""md"Control size.
disabledbooleanfalseDisables every button.
unstyledbooleanfalseHeadless mode — skips Zephora styling.