When to use Pagination
Use pagination when a user’s goal is to find a specific item rather than to peruse the full set of data. By breaking the data up into smaller, consistently sized groups, the user is more easily able to jump to specific sections of the data.
If you expect the user will be scrolling and perusing large amounts of the data set, consider using Infinite Scroll.
Number of results per page
By default, 20 results should show at once. The examples on this page have been modified to show less results per page so that the pagination control is viewable in the single screen.
If the user has performed a search resulting in less than 20 results, the pagination component should no longer be displayed.
Placement of pagination component
The pagination component should be placed underneath and justified to the end of the content it is paginating.
Showing summary of results
It may be beneficial to provide users with a summary of what range of results they are viewing. This should take the format of "Showing 1-20 of 1000" and should be aligned in a row with the pagination component.
The results summary should be justified to the start of the row and the pagination component should remain justified to the end of the row.
Below are some accessibility requirements that ensure pagination is accessible for screen readers and keyboard navigation.
If your team is developing with Grommet, these considerations are already handled, so no further action is required from your team.
- Wrap pagination links in a
- Provide an
- Individual page buttons should have an
aria-labelthat reads "Go to page X", where X is the page that will be navigated to upon selection.
- The active page button should have
- The next/previous arrow buttons should have
aria-labelthat reads "Go to next page" and "Go to previous page", respectively.
For more detailed documentation on these requirements, you can read more about accessible pagination.
Tables often contain large amounts of data. To improve the efficiency that a user can navigate to a specific item or range of items, use pagination.
Lists often contain large amounts of data. To improve the efficiency that a user can navigate to a specific item or range of items, use pagination.
Something missing or looking for more information? Get in touch to help make the HPE Design System better.