Components, Navigation
Pagination
Moves between the pages of a list with one line that shows the current page and the total.
Moves between the pages of a list. It shows one line, “‹ 2 / 7 ›”, and does not lay out page numbers.
Appearance
- Previous and next are BaseButton
ghostsmnarrowed to a 32px square. The icon is a 16px Chevron inmuted-foreground. - The status in the middle is 14px tabular numerals.
- It fits on one line even at a width of 390px.
- When there is only one page, nothing is drawn.
What you provide
page(starts at 1),pageCountandonChange.
Markup
<nav class="Pagination_pager" aria-label="Pagination">
<button type="button" class="BaseButton_btn BaseButton_btn--ghost BaseButton_btn--sm Pagination_step" aria-label="Previous page"><svg>…</svg></button>
<span class="Pagination_status" aria-live="polite"><span aria-hidden="true">2 / 7</span><span class="Pagination_srOnly">Page 2 of 7</span></span>
<button type="button" class="BaseButton_btn BaseButton_btn--ghost BaseButton_btn--sm Pagination_step" aria-label="Next page"><svg>…</svg></button>
</nav>
Don’t
- Don’t add number buttons or an ellipsis (…).