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".

Similar Components

Tabs

Tabs is a component for switching between different display areas.

Breadcrumb

Breadcrumb is a component that helps users understand the hierarchy of a website.

Checkbox

Checkbox is a component used for allowing users to select multiple values from multiple options.

Link

Link is a component for creating hyperlinks to different web pages, locations within the same page, or other URLs.

LinkBox

LinkBox is a component that allows elements such as articles or cards to function as a single link.

NativeSelect

NativeSelect is a component used for allowing users to select one value from a list of options. It displays a native dropdown list provided by the browser (user agent).

Radio

Radio is a component used for allowing users to select one option from multiple choices.

Rating

Rating is a component used to allow users to provide ratings.

Uses Components & Hooks