Pagination

Web
The Pagination component simplifies content navigation with numbered buttons, ideal for large data sets and search results.

Overview

The pagination component provides a structured way to navigate through large datasets, ensuring that users can efficiently access content while maintaining clarity in the interface. It is designed with multiple variations to suit diverse use cases, from showing labels to adjusting the placement of actions like “First” and “Last”.

Live demo

Content

Functional Usage

When to Use

Use pagination when displaying a limited number of results per page is necessary for performance or usability. Avoid using pagination for infinite scrolling experiences, where dynamic loading of content is more suitable.

Consistency

Ensure the pagination component is used consistently across all pages that display similar datasets. This helps users develop a predictable mental model for navigation.

Interaction and Behaviour

Button Interactions

Pagination actions (e.g., “Next”, “Previous”, “First”, “Last”) use the Quarternary button style to align with the system’s visual language. Ensure these buttons are appropriately styled and accessible for hover, focus, and active states.

Disabling States

Disable “First” and “Previous” actions when on the first page, and “Next” and “Last” when on the final page to avoid invalid navigation.

Labels

  • When Show Label is enabled, include a concise description of the current result range (e.g., “Results x–y of z”). This helps users understand their position within the dataset.
  • When Show Label is disabled, ensure the component remains visually balanced without labels, using consistent spacing and alignment.

Layout and Placement

Positioning

The pagination component should be placed consistently, either at the top, bottom, or both top and bottom of content sections, depending on the use case. Avoid placing the component in unconventional or unexpected locations.

Spacing

Ensure adequate spacing around the component to avoid visual clutter and maintain hierarchy within the layout.

Accessibility

Keyboard Navigation

All buttons within the component must be keyboard navigable, with a clear focus state that meets accessibility contrast requirements.

Screen Readers

Provide descriptive labels for each button (e.g., “Go to next page” for “Next”) and for dynamic elements like result counts.