Web only

Pagination

pages of a long list or table · Previous/Next + page links · isActive on the current page

PaginationWeb only

Usage

Under a DataTable with more rows than fit. Say where the person is (“21–30 of 128”) next to it. On a phone, show “Page 3 of 13” between Previous and Next instead of the page links: they are touch-sized and don’t fit.

API

<Pagination><PaginationContent><PaginationItem><PaginationPrevious href /></PaginationItem>…</PaginationContent></Pagination>

Get it

Already in every copy of the web kit:

import { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis } from '@/components/ui/pagination';

Details

Exports
Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis
Packages
cn@^0.5.2, lucide-react@^1.52.0
Installs with
@halftone-web/button
Also searched as
pages, next page, paging
Upstream
Unchanged from shadcn/ui. The kit publishes its own copy so it brings the kit's versions of the files it uses; shadcn/ui's would replace them.

Agents: the whole registry is at /llms.txt.