Pagination

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

Usage

import { Pagination } from "@yamada-ui/react"
<Pagination.Root total={10} />

Change Variant

Change Size

Change Color Scheme

Default Page

Set the initial page with the defaultPage prop.

Add Edge Control Buttons

To add buttons to move to the first and last pages, set withEdges to true.

Customize the Number of Siblings

To change the number of pages displayed on the left and right of the current page, set siblings to a number.

Customize the Number of Boundaries

To change the number of pages displayed on the left and right edges, set boundaries to a number.

Disable

To disable the pagination, set disabled to true.

Display Text

Customize Control Buttons

Customize Text

Control

Props

Accessibility

Keyboard Navigation

KeyDescriptionState
TabMoves focus to the next page button.-
Shift + TabMoves focus to the previous page button.-
Enter, SpaceActivates the focused page button.-

ARIA Roles and Attributes

ComponentRoles and AttributesUsage
Pagination.Rootrole="navigation"Indicates that this is a navigation region between pages.
aria-labelSets to "Pagination".
Pagination.Itemaria-labelSets to "Go to page {value}" for page number buttons.
aria-current="page"Sets to the current page number button.
role="presentation"Indicates that this is a presentation for page number buttons.
Pagination.PrevTriggeraria-labelSets to "Go to previous page".
Pagination.NextTriggeraria-labelSets to "Go to next page".
Pagination.StartTriggeraria-labelSets to "Go to first page".
Pagination.EndTriggeraria-labelSets to "Go to last page".
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd