Pagination
v1.0.15Updated 19 Oct 2026Standalone pagination controls (separate from the DataTable built-in). Numbered links, prev/next, ellipsis collapse, with optional page-jump input.
Preview
Live · 8 stories▸Why this is recommendedpaginationpagepagernavigation+5
The default, out-of-the-box Pagination.
- ✓Paging through a long list of records outside DataTable
- ✓Page navigation with numbered links and previous / next controls
- ✓A pager under search results, a blog index or docs
- ✓Jumping to a page number in a long result set
- Numbered links with ellipsis collapse
- Previous / Next controls
- Optional page-jump input
- Mini variant for tight toolbars
- Sticky variant for long lists
- Compositional link: PaginationLink asChild takes the host router link as its single child (same pattern as BreadcrumbLink) and hands it the Button styling, data-slot, aria-current and the disabled boundary state (fb_bf7dc63a)
- ✕Inside DataTable (uses its own pager)
- ✕Tiny result sets (< 1 page)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
isActivePaginationLink: marks the active page
—asChildPaginationLink: render the host app router link (the single child) in place of the built-in anchor, keeping the Button styling, data-slot="pagination-link", aria-current and the disabled boundary state. onClick already receives the click event. MCP feedback fb_bf7dc63a.
—sizePaginationLink: button size preset
—hrefPaginationLink: the destination. OMIT it for a pager that moves a page number held in state and the control renders a real <button> — an anchor with href="#" runs the handler and then jumps to the top of the document and pushes a history entry, so Back goes nowhere.
—