export const title = "Pagination components" export const description = "Free and open-source React pagination components built for modern applications and websites. These pagination components are built using React Aria and styled with Tailwind CSS." export const links = { github: "https://github.com/untitleduico/react/tree/main/components/application/pagination", } import * as Demos from "@/components/application/pagination/pagination.story.tsx"; ## Installation You can add this pagination component using our CLI or manually: ```bash npx untitledui@latest add pagination ``` Copy the files below into your project: Great! Now you can start using the pagination components in your project by just copy/pasting our examples below. ## Pagination examples Below are examples and variations of this pagination component: ### Page default {{ tocOnly:true }} ### Page minimal center {{ tocOnly:true }} ### Card default {{ tocOnly:true }} ### Card minimal right aligned {{ tocOnly:true }} ### Card minimal center aligned {{ tocOnly:true }} ### Card minimal left aligned {{ tocOnly:true }} ### Button group right aligned {{ tocOnly:true }} ### Button group center aligned {{ tocOnly:true }} ### Button group left aligned {{ tocOnly:true }} ### Card advanced {{ tocOnly:true }} ### Card advanced center {{ tocOnly:true }} ### Pagination dot {{ tocOnly:true }} ### Pagination line {{ tocOnly:true }} ## API reference `. Each page button gets `aria-current=\"page\"` when it is the current page and an `aria-label` of `\"Page {value}\"`, the ellipsis is `aria-hidden`, and the previous and next triggers are labelled `\"Previous Page\"` and `\"Next Page\"` and are automatically disabled on the first and last page. Those button labels are the ones you can override: `Pagination.Item`, `Pagination.PrevTrigger` and `Pagination.NextTrigger` each take an `ariaLabel` prop. The `