Pagination

A simple pagination component
Displays additional controls if there are more than five pages (first, previous, next, last). Additionally, component will be hidden if total page count is one. Note that this component doesn't do any of the actual pagination logic, it just displays buttons.

Usage

Pagination is used to divide a large amount of content into smaller bits across multiple pages and allow users to navigate through them.

Anatomy

Anatomy
Arrow navigation
Buttons to navigate forward or backward from the current page.
Page number
A clickable link that allows users to select a specific page.
Selected page
An indication of the current page the user is viewing.
Truncation
When the maximum number of page has been reached, the list is truncated using ellipses.

Appearance

Default
Default pagination for mobile and desktop.
Default
Outline
Outline variant pagination for mobile and desktop.
Outline
Compact
Compact pagination displays how many items are shown on the current page out of the total number of items.
Compact

Behaviour

Initial state
Default pagination for mobile and desktop.
Initial state
Active state
Outline variant pagination for mobile and desktop.
Active state
Initial hover state
Outline variant pagination for mobile and desktop.
Initial hover state
Active hover state
Compact pagination displays how many items are shown on the current page out of the total number of items.
Active hover state
Disabled state
Compact pagination displays how many items are shown on the current page out of the total number of items.
Disabled state

Best Practices

Place pagination at the bottom
Pagination should be placed at the bottom of the page and be visible to users.
Do
Don't

Show first and last page number upfront
Pagination should show the last page number upfront, which helps give the user an understanding of how many pages are available in total.
Do
Don't

Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.