Leave Yamada UI a star

Star
Yamada UIYamada UIv1.5.4

Pagination

Pagination is a component for managing the pagination and navigation of content.

Source@yamada-ui/pagination

Props

PaginationProps

total

Required

Description

The total number of pages in pagination.

Type

number

boundaries

Description

Number of elements visible on the left/right edges.

Type

UIValue<number>

Default

1

colorScheme

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"

component

Description

The pagination button component to use.

Type

FC<PaginationItemProps>

controlNextProps

Description

Props for next of the control button element.

Type

HTMLUIProps<"button">

controlPrevProps

Description

Props for previous of the control button element.

Type

HTMLUIProps<"button">

controlProps

Description

Props for control button element.

Type

HTMLUIProps<"button">

defaultPage

Description

The initial page of the pagination. Should be less than total and greater than 1.

Type

number

Default

1

edgeFirstProps

Description

Props for first of the edge button element.

Type

HTMLUIProps<"button">

edgeLastProps

Description

Props for last of the edge button element.

Type

HTMLUIProps<"button">

edgeProps

Description

Props for edge button element.

Type

HTMLUIProps<"button">

innerProps

Description

Props for inner element.

Type

HTMLUIProps

isDisabled

Description

If true, the pagination all item will be disabled.

Type

boolean

Default

false

itemProps

Description

Props for button element.

Type

HTMLUIProps<"button">

onChange

Description

The callback invoked when the page changes.

Type

(page: number) => void

page

Description

The page of the pagination. Should be less than total and greater than 1.

Type

number

siblings

Description

Number of siblings displayed on the left/right side of selected page.

Type

UIValue<number>

Default

1

size

Description

The size of the Pagination.

Type

"xs" | "sm" | "md" | "lg" | "xl"

Default

"md"

variant

Description

The variant of the Pagination.

Type

"ghost" | "outline" | "solid" | "unstyled"

Default

"solid"

withControls

Description

If true, display the control buttons.

Type

UIValue<boolean>

Default

true

withEdges

Description

If true, display the edge buttons.

Type

UIValue<boolean>

Default

false

UsePaginationProps

total

Required

Description

The total number of pages in pagination.

Type

number

boundaries

Description

Number of elements visible on the left/right edges.

Type

UIValue<number>

Default

1

defaultPage

Description

The initial page of the pagination. Should be less than total and greater than 1.

Type

number

Default

1

isDisabled

Description

If true, the pagination all item will be disabled.

Type

boolean

Default

false

onChange

Description

The callback invoked when the page changes.

Type

(page: number) => void

page

Description

The page of the pagination. Should be less than total and greater than 1.

Type

number

siblings

Description

Number of siblings displayed on the left/right side of selected page.

Type

UIValue<number>

Default

1

Edit this page on GitHub

PreviousBreadcrumbNextStepper