
components
Pagination
v.1.0.0 | SaturnIs used to select a specific page from a given range of pages.
Components
Play with the component with our playground.
[CODE]
Anatomy

Name | Description |
---|---|
1 Required | Indicates the current page. |
2 Required | Indicates all the other pages that are not the current one. |
3 | Indicates the first and the last page when there are more than 5 pages. If you are not in the first or last 5 pages, it must be separated with an ellipsis and always visible. |
4 Required | Indicates if you can navigate to the next or previous element. |
5 | Use this element to separate the first and last page when there are more than 5 pages. |
States
- Number variants


- Chevron variants


Options
Desktop
- 2 to 5 pages
All numbers can change to current page.

- More than 5 pages
When there are more pages, we will show just 5 and the variant with ellipsis will appear. If the selection is on the first 4 numbers, the last number will be shown after a ellipsis.

Mobile
- 2 to 4 pages
All numbers can change to current page. On mobile the maximum number of pages will be 4.

- More than 4 pages
When there are more pages, we will show just 4 and the variant with ellipsis will appear. If the selection is on the first 3 numbers, the last number will be shown after a ellipsis.

Layout
- Vertical grouping
The page controller must respect a margin of 16px with the pager element.


Behaviour
Desktop and tablet




Clickable area
- Clickable elements
All the elements of this component are clickable, excepting the ellipsis. The navigation arrows will change pages one by one. Clicking on a number will automatically navigate to the page selected. The interactable area is 24x24 px.

Keyboard interactions
- Tap the arrow key on the keyboard
This pagination is controlled by using arrow keys to move it.

- Keyboard focus
All the elements of this component are keyboard interactable, excepting the ellipsis.

Do's and dont's

Use the disabled navigation arrows if you are on the first or last page.

Use the ellipsis if there are more than 5 pages on desktop or 4 on mobile.

Don’t use more than 5 pages on desktop or 4 pages on mobile.

Use the disabled navigation arrows if you are on the first or last page.

On desktop resolutions, the current page must always be on the center of the 3 pages between ellipsis.

On mobile resolutions, the current page must always be the left one of the pages between ellipsis.