Pagination

Controls for navigating between pages of paginated content.

$bunx shadcn@latest add @nx-ui/pagination
Registry item
Installs withbuttonutils

Basic usage

Previous and next controls flanking a run of page links, built from composable parts.

With ellipsis

For long runs, collapse distant pages behind an ellipsis so the control stays compact.

Boundary state

At the first or last page, the adjacent previous/next control is visually disabled via aria-disabled.

Paginated table

A realistic composition: site compliance records with pagination controlling the visible page.

SiteReferenceTonnage receivedStatus
Foxhollow Reclamation YardNXS-1042812tCompliant
Marlden Composting FacilityNXS-10431,204tCompliant
Redcliffe Soil BankNXS-1044398tUnder review
Aldergate Transfer StationNXS-10452,015tCompliant
Brackenfield LandfillNXS-1046664tFlagged

Showing 1–5 of 118 sites across the Nexus movement network

API reference

Exported parts and their props, extracted from the component source.