Ballmac UI home

Pagination

A semantic page navigation set with current-page feedback, generous targets, and small-screen labels.

Showing 21–30 of 128 reports

Installation

$ pnpm dlx shadcn@latest add @ballmac/pagination

Usage

import { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis } from "@/components/ballmac/pagination"

The full example is in the Code tab above.

Examples

States and variants

API reference

<Pagination>

PropTypeDefault
"aria-label"

Accessible name of the navigation landmark.

string—

<PaginationLink>

PropTypeDefault
isActive

Mark the current page for visual and screen reader feedback.

booleanfalse

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Tabmoves between page links
Enteropens the focused page

Use with AI

A semantic page navigation set with current-page feedback, generous targets, and small-screen labels. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Pagination (@ballmac/pagination) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Navigate a large result set by page
  • Show a current page and neighboring destinations

Not for

  • Use infinite scroll when discrete pages are unnecessary

Registry JSON: https://ui.ballmac.com/r/pagination.json

Credits

Based on shadcn/ui Pagination, adapted by Ballmac. Free to use in personal and commercial projects.