Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
UI Kit components
Jira UI Kit components
UI Kit hooks
Forge bridge APIs
Jira bridge APIs
Confluence bridge APIs
Dashboard bridge APIs (EAP)
Upgrade UI Kit versions
Last updated May 11, 2026

Pagination (Preview)

To add the Pagination component to your app:

1
2
import { Pagination } from '@forge/react';

Description

Pagination allows you to divide large amounts of content into chunks across multiple pages.

Props

NameTypeRequiredDescription
pagesnumber[]YesAn array of page numbers to display. For example, [1, 2, 3, 4, 5].
defaultSelectedIndexnumberNoThe index of the page that is selected by default (uncontrolled). Defaults to 0.
selectedIndexnumberNoThe index of the currently selected page (controlled). Use alongside onChange to manage state externally.
onChange(page: number) => voidNoCalled when the user navigates to a different page. Receives the selected page number as an argument. The page number is the value of the page in the pages array and not the index.
maxnumberNoThe maximum number of page buttons to display at once. When there are more pages than the max, pages are truncated with ellipses.
labelstringNoAn accessible label for the pagination navigation landmark.
nextLabelstringNoAn accessible label for the next page button.
previousLabelstringNoAn accessible label for the previous page button.
pageLabelstringNoAn accessible label applied to each page button. The page number is appended automatically.
testIdstringNoA unique string that appears as a data-testid attribute in the rendered HTML. Used for testing.

Examples

Default

The default pagination with a list of pages.

Example image of rendered default pagination

1
2
const PaginationDefaultExample = () => {
  return <Pagination pages={[1, 2, 3, 4, 5]} />;
};

Selected index

Use defaultSelectedIndex to pre-select a page on initial render. The index is zero-based, so defaultSelectedIndex={2} selects the third page.

Example image of rendered pagination with selected index

1
2
const PaginationSelectedIndexExample = () => {
  return <Pagination pages={[1, 2, 3, 4, 5]} defaultSelectedIndex={2} />;
};

Accessibility considerations

When using the Pagination component, we recommend keeping the following accessibility considerations in mind:

  • Use the label prop to provide a descriptive name for the pagination navigation region so that assistive technologies can distinguish it from other navigation on the page.
  • Use the nextLabel, previousLabel, and pageLabel props to provide meaningful accessible labels for the navigation buttons, especially in non-English apps.

Rate this page: