Skip to content
nexubDesign System
v12.7.0

Components · Navigation

Pagination

StableAdded v0.0.1

Page navigation control with prev/next and page number buttons.

import { Pagination } from '@nexub/react';
View as Markdown

Playground

Props

TSX
<Pagination page={page} onPageChange={setPage} pageSize={10} totalItems={100} />

Examples

Default

Large dataset

States

  • default
  • disabled

Props

Props
PropTypeDefaultDescription
pagerequirednumber—The currently active page (1-indexed).
totalItemsrequirednumber—Total number of items across all pages.
pageSizenumber20Number of items per page. Used to calculate total page count.
siblingCountnumber1Number of page buttons to show on each side of the current page.
onPageChangerequired(page: number) => void—Callback invoked with the new page number when the user navigates.
disabledbooleanfalseDisables all pagination controls.

On iOS & Android