total
RequiredDescription
The total number of pages in pagination.
Type
numberLeave Yamada UI a star
StarPagination is a component for managing the pagination and navigation of content.
Description
The total number of pages in pagination.
Type
numberDescription
Number of elements visible on the left/right edges.
Type
UIValue<number>Default
1Description
The visual color appearance of the component.
Type
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"Default
"primary"Description
The pagination button component to use.
Type
FC<PaginationItemProps>Description
Props for container element.
Type
HTMLUIProps<"nav">Description
Props for next of the control button element.
Type
Omit<PaginationItemProps, "page">Description
Props for previous of the control button element.
Type
Omit<PaginationItemProps, "page">Description
Props for control button element.
Type
Omit<PaginationItemProps, "page">Description
The initial page of the pagination.
Should be less than total and greater than 1.
Type
numberDefault
1Description
If true, the pagination all item will be disabled.
Type
booleanDefault
falseDescription
Props for first of the edge button element.
Type
Omit<PaginationItemProps, "page">Description
Props for last of the edge button element.
Type
Omit<PaginationItemProps, "page">Description
Props for edge button element.
Type
Omit<PaginationItemProps, "page">Description
If true, the pagination all item will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
Props for button element.
Type
Omit<PaginationItemProps, "page">Description
The callback invoked when the page changes.
Type
(page: number) => voidDescription
The page of the pagination.
Should be less than total and greater than 1.
Type
numberDescription
Number of siblings displayed on the left/right side of selected page.
Type
UIValue<number>Default
1Description
The size of the Pagination.
Type
"xs" | "sm" | "md" | "lg" | "xl"Default
"sm"Description
The variant of the Pagination.
Type
"ghost" | "outline" | "solid" | "subtle" | "surface" | "unstyled"Default
"solid"Description
If true, display the control buttons.
Type
UIValue<boolean>Default
trueDescription
If true, display the edge buttons.
Type
UIValue<boolean>Default
falseDescription
The total number of pages in pagination.
Type
numberDescription
Number of elements visible on the left/right edges.
Type
UIValue<number>Default
1Description
The initial page of the pagination.
Should be less than total and greater than 1.
Type
numberDefault
1Description
If true, the pagination all item will be disabled.
Type
booleanDefault
falseDescription
If true, the pagination all item will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
The callback invoked when the page changes.
Type
(page: number) => voidDescription
The page of the pagination.
Should be less than total and greater than 1.
Type
numberDescription
Number of siblings displayed on the left/right side of selected page.
Type
UIValue<number>Default
1Edit this page on GitHub