Skip to content
nexubDesign System
v2.4.0

Components · Navigation

Pagination

StableSince v0.0.1

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

import { Pagination } from '@nexub/react';

Examples

Default

Large dataset

Props

Props
PropTypeDefaultDescription
pagerequirednumber—The currently active page (1-indexed).
totalItemsrequirednumber—Total number of items across all pages.
pageSizenumber10Number 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.
showFirstLastbooleantrueWhether to show First and Last page navigation buttons.
disabledbooleanfalseDisables all pagination controls.

On iOS & Android