Pagination

Pagination is a neobrutalist React component from Cruise UI. Page numbers with Previous / Next; compacts to "Page 3 of 12" on phones. Install it with npx shadcn@latest add @cruiseui/pagination.

Install

Terminal

npx shadcn@latest add @cruiseui/pagination

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners

When to use it

When to use

Long lists split into pages: orders, search results.

When not to

Feeds (a "Load more" button is simpler).

Props

CruisePagination

PropTypeDefaultDescription
pagenumber—The current page (1-based).
pageCountnumber——
onPageChange(page: number) => void——
className?string——

Accessibility

  • <nav aria-label="Pagination">; the current page has aria-current="page".
  • Previous / Next keep their aria-label when the text hides on small screens.