A shadcn-style pagination component built with Ark UI primitives.

Installation

npx shadcn@latest add @ark-cn/pagination

Usage

import * as Pagination from "@/components/ui/pagination"

Read exported parts in src/components/ui/pagination.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Context Info

Controlled

Default

API reference

This component mirrors the upstream Ark UI primitive. All props and DOM behavior are defined by Ark unless you see an ark-cn-only row below.

PaginationItems

PropTypeDescription
itemType?"button" | "link"Renders page items as Button or styled anchor.
size?ButtonSizeButton size for page controls.
variant?ButtonVariantButton variant for page controls (current page forces outline).

See the ARK UI documentation for the full API.