No results found

Pagination

A component that enables users to navigate through multiple pages of content with numbered buttons and previous/next controls.

Basic Usage

To create a pagination component, use the Pagination.Root component to wrap Pagination.Page, Pagination.Previous, and Pagination.Next components.

The pagination component includes Previous and Next buttons for easy navigation between pages.

Custom Length

The pagination automatically adjusts based on the totalPages prop provided to Pagination.Root.

...

Sibling Count

Control how many page numbers appear before and after the current page using the siblingCount prop.

1 Sibling Count

......

2 Sibling Count

......

Ellipsis

When there are many pages, ellipsis (...) is automatically shown to indicate skipped page numbers. You can customize the ellipsis character using the ellipsis prop.

......
••••••

Disabled State

The pagination component handles disabled states:

First Page (Previous disabled)

Last Page (Next disabled)

Keyboard Navigation

The pagination component supports keyboard navigation:

Keyboard Navigation: Previous page| Next pageHome First page|End Last page

Accessibility

The pagination component is built with accessibility in mind and follows WCAG guidelines:

ARIA Attributes