--- title: Pagination description: Page navigation with numbered controls, next, and previous links. --- ## Preview ## Installation CLI Manual ```bash npx @olyx/cli@latest add pagination ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "@/components/ui/pagination" ``` ```tsx 1 2 ``` ## API Reference This is a custom component, not a Base UI wrapper. #### Pagination Root navigation container with `role="navigation"` and `aria-label="pagination"`. | Prop | Type | Default | | --------- | --------- | ------- | | `rounded` | `boolean` | `false` | #### PaginationContent Unordered list container for pagination items. #### PaginationItem Individual list item container. #### PaginationLink Link element for page numbers. Renders as a `Button` with `mode="stroke"` and `variant="neutral"`. | Prop | Type | Default | | ---------- | --------- | ------- | | `isActive` | `boolean` | - | | `asIcon` | `boolean` | `true` | #### PaginationPrevious Link to the previous page. Includes a chevron left icon. Pass children to add a text label. #### PaginationNext Link to the next page. Includes a chevron right icon. Pass children to add a text label. #### PaginationEllipsis Ellipsis indicator for skipped pages. Displays "..." with `aria-hidden`. ## Examples ### Rounded