Pagination
Page keys with previous, next and ellipses, and a position readout.
Component
Pagination belongs to the Actions group in the CyberSpec catalog. It uses @ui-sdk/react/pagination.
Installation
Use a React 19 project with shadcn configured. Render the installed components inside the Cyber root, and import your global stylesheet in the app entry point.
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/pagination.json
Example
"use client"
import { Pagination } from "@/components/ui/pagination"
export default function PaginationDemo() {
return (
<>
<Pagination label="Archive pages" pageCount={12} defaultPage={3} />
</>
)
}
Install this example
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/pagination-demo.json