Alpha component
Pagination is not ready to be used in production. Use at your own risk.
Pagination is not ready to be used in production. Use at your own risk.
Used to navigate between pages on a list.
import { Pagination } from '@contentful/f36-pagination';
Name | Type | Default |
---|---|---|
activePage required | number Sets which page is active on the Pagination | |
itemsPerPage required | number Sets how many items are displayed per page | |
onPageChange required | (page: number) => void Handler function called when user navigates to another page on the pagination. | |
totalItems required | number Total amount of items the pagination is applied to. | |
className | string CSS class to be appended to the root element | |
testId | string A [data-test-id] attribute used for testing purposes |
onPageChange
prop must update the list displayed to the user based on the page navigated to.aria-label
to the Pagination to give more context to screen readers.