total
RequiredDescription
The total number of pages in pagination.
Type
number
Leave 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
number
Description
Number of elements visible on the left/right edges.
Type
UIValue<number>
Default
1
Description
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
number
Default
1
Description
If true
, the pagination all item will be disabled.
Type
boolean
Default
false
Description
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
boolean
Default
false
Description
Props for button element.
Type
Omit<PaginationItemProps, "page">
Description
The callback invoked when the page changes.
Type
(page: number) => void
Description
The page of the pagination.
Should be less than total
and greater than 1
.
Type
number
Description
Number of siblings displayed on the left/right side of selected page.
Type
UIValue<number>
Default
1
Description
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
true
Description
If true
, display the edge buttons.
Type
UIValue<boolean>
Default
false
Description
The total number of pages in pagination.
Type
number
Description
Number of elements visible on the left/right edges.
Type
UIValue<number>
Default
1
Description
The initial page of the pagination.
Should be less than total
and greater than 1
.
Type
number
Default
1
Description
If true
, the pagination all item will be disabled.
Type
boolean
Default
false
Description
If true
, the pagination all item will be disabled.
Deprecated
Use disabled
instead.
Type
boolean
Default
false
Description
The callback invoked when the page changes.
Type
(page: number) => void
Description
The page of the pagination.
Should be less than total
and greater than 1
.
Type
number
Description
Number of siblings displayed on the left/right side of selected page.
Type
UIValue<number>
Default
1
Edit this page on GitHub