Documentation Index
Fetch the complete documentation index at: https://mintlify.com/zendeskgarden/website/llms.txt
Use this file to discover all available pages before exploring further.
| Component | Use when |
|---|---|
OffsetPagination | You know the total number of pages and want users to jump to any page |
CursorPagination | No concept of total pages; navigate sequentially (e.g. API cursor) |
OffsetPagination
Offset-based pagination shows the total number of pages and allows users to jump to a specific position.Gap indicator
When there are many pages, a gap indicator (...) represents overflowing page numbers. Control where gaps appear with the pagePadding and pageGap props.
Page padding
Sets the number of pages that appear between the current page and a gap indicator.Props
The currently active page number (1-indexed).
The total number of pages to display.
Callback fired when the user selects a different page.
The minimum number of pages between the current page indicator and a gap (
...). Defaults to 2.The number of pages that appear between the current page and the gap indicator. Defaults to
2.CursorPagination
Cursor-based pagination works by returning a pointer to a specific item in a dataset. There is no concept of total pages. Users navigate sequentially with First, Previous, Next, and Last controls.Props
Accessible label for the
nav element wrapping the pagination controls.CursorPagination subcomponents
CursorPagination.First — Navigates to the first item in the set.
CursorPagination.Previous — Navigates to the previous item.
CursorPagination.Next — Navigates to the next item.
CursorPagination.Last — Navigates to the last item in the set.
Each subcomponent accepts disabled (boolean) and an onClick handler.
Combining with Table
Pagination is commonly paired with a Table. Render theOffsetPagination below the table and slice your data based on currentPage.
Accessibility
- Wrap
OffsetPaginationandCursorPaginationin a<nav>element with a descriptivearia-label(e.g."Results pagination"). - The current page button receives
aria-current="page"automatically. - Disabled navigation buttons receive
disabledattributes to prevent interaction and screen reader activation.