Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.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>

containerProps

Description

Props for container element.

Type

HTMLUIProps<"nav">

controlNextProps

Description

Props for next of the control button element.

Type

Omit<PaginationItemProps, "page">

controlPrevProps

Description

Props for previous of the control button element.

Type

Omit<PaginationItemProps, "page">

controlProps

Description

Props for control button element.

Type

Omit<PaginationItemProps, "page">

defaultPage

Description

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

Type

number

Default

1

disabled

Description

If true, the pagination all item will be disabled.

Type

boolean

Default

false

edgeFirstProps

Description

Props for first of the edge button element.

Type

Omit<PaginationItemProps, "page">

edgeLastProps

Description

Props for last of the edge button element.

Type

Omit<PaginationItemProps, "page">

edgeProps

Description

Props for edge button element.

Type

Omit<PaginationItemProps, "page">

isDisabled

Deprecated

Description

If true, the pagination all item will be disabled.

Deprecated

Use disabled instead.

Type

boolean

Default

false

itemProps

Description

Props for button element.

Type

Omit<PaginationItemProps, "page">

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

"sm"

variant

Description

The variant of the Pagination.

Type

"ghost" | "outline" | "solid" | "subtle" | "surface" | "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

disabled

Description

If true, the pagination all item will be disabled.

Type

boolean

Default

false

isDisabled

Deprecated

Description

If true, the pagination all item will be disabled.

Deprecated

Use disabled instead.

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