Pagination: Jump to a page
Click an ellipsis to type a page number. Enter jumps, an out-of-range number shakes the field, and Esc puts the ellipsis back. Turn it off with jump={false}.
This adds the example as components/examples/pagination/long.tsx, together with the Pagination component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/pagination-long.jsonTo add only the component, follow the Pagination installation.
Props in this example
The Pagination props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
countTotal pages. When set, the bar is built for you; leave it out to compose the parts. | number | – |
page | number | – |
onPageChange | (page: number) => void | – |
Every prop is in the Pagination API reference.
See them all, with keyboard support and accessibility notes, on the Pagination page.
- ButtonButtons in every variant and size, with a built-in loading, success and error flow that skips the spinner for fast requests.
- MotionThe easing curves, durations and reduced-motion check every component animates with, plus hooks for size morphs and sliding highlights.
- usePaginationTurns a page and a page count into the list of pages and ellipses to render, keeping its length steady as the page moves.
- BreadcrumbA trail of links to the current page that wraps safely, mirrors in right-to-left layouts and expands collapsed segments in place.
- Navigation menuSite navigation with dropdowns, or one full-width panel that stays open while its content slides between menus.
- SidebarAn app sidebar that collapses to icons or off canvas, stays pinned under your header, and becomes a swipeable sheet on phones.