Pagination
constSource L14Open-code aq-ui accessible component family for Pagination.
const Pagination = React.forwardRef<React.ComponentRef<"nav">, React.ComponentProps<"nav">>(…)- Props type
React.ComponentProps<"nav">
<Pagination />
Open-code aq-ui accessible component family for Pagination.
This is a live example. Interact with the available controls and use the keyboard to inspect the component's states and behavior.
pnpm dlx aq-ui@alpha add paginationImport the parts you need, then jump to an export for its contract.
import { Pagination } from "@/components/ui/pagination"
<Pagination />Open-code aq-ui accessible component family for Pagination.
const Pagination = React.forwardRef<React.ComponentRef<"nav">, React.ComponentProps<"nav">>(…)React.ComponentProps<"nav">Content export for composing Pagination.
const PaginationContent = React.forwardRef<React.ComponentRef<"ul">, React.ComponentProps<"ul">>(…)React.ComponentProps<"ul">Public const export from Pagination.
const PaginationEllipsis = React.forwardRef<React.ComponentRef<"span">, React.ComponentProps<"span">>(…)React.ComponentProps<"span">Item export for composing Pagination.
const PaginationItem = React.forwardRef<React.ComponentRef<"li">, React.ComponentProps<"li">>(…)React.ComponentProps<"li">Public const export from Pagination.
const PaginationLink = React.forwardRef<React.ComponentRef<"a">, PaginationLinkProps>(…)Type contract for PaginationLinkProps.
type PaginationLinkProps = { … } & Pick<ButtonProps, "size"> & React.ComponentProps<"a">| Name | Type | Default |
|---|---|---|
disabled? | boolean | false |
isActive? | boolean | — |
Public const export from Pagination.
const PaginationNext = React.forwardRef<React.ComponentRef<typeof PaginationLink>, React.ComponentProps<typeof PaginationLink> & { text?: string }>(…)React.ComponentProps<typeof PaginationLink> & { text?: string }| Name | Type | Default |
|---|---|---|
text? | string | "Next" |
Public const export from Pagination.
const PaginationPrevious = React.forwardRef<React.ComponentRef<typeof PaginationLink>, React.ComponentProps<typeof PaginationLink> & { text?: string }>(…)React.ComponentProps<typeof PaginationLink> & { text?: string }| Name | Type | Default |
|---|---|---|
text? | string | "Previous" |
button, utils
lucide-react@^1.31.0