shadcn's Pagination parts in Notchset, and with a total, the instrument: a range header that flips, prev and next keys, a seven-slot window whose ink block slides under the current page, ellipses that jump three pages, and a ruler whose node glides to the position.
pnpm dlx shadcn@latest add https://beautiful-ui.dev/r/pagination.jsonpnpm dlx shadcn@latest add https://beautiful-ui.dev/r/radix-nova/pagination.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @beautiful-ui registry added, @beautiful-ui/<name> picks for you.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { Pagination } from "@/components/ui/notchset/pagination";
export function RunsPager() {
const [page, setPage] = React.useState(1);
return <Pagination aria-label="Runs pages" total={22} page={page} onPageChange={setPage} perPage={10} count={214} itemLabel="Runs" />;
}total–
numberPages in all; makes Pagination the instrument.
page / defaultPage / onPageChange–
number / (page) => voidThe current page.
perPage / count / itemLabel–
number / number / stringThe range header ("RUNS 11–20 OF 214").
siblings–
numberPages beside the current one. Default 1 (seven slots).
ruler–
booleanThe position ruler. Default true.
PaginationLink isActive–
booleanAs shadcn.
components/ui/notchset/pagination.tsx