Pagination
One component pages through a long list: each page a button, or a link to its address, the current one outlined, dots for the pages left out, and chevrons for previous and next.
Usage
Examples
Sizes
size sets every page, chevron and the dots at a Button's height, sm 32px, base 40px (the default) or lg 48px, and the gap between them to match.
Border radius
borderRadius sets the corners of every page and chevron as a Button's, on the kit's one scale: none, xs 4px, sm 6px, base 8px (the default), lg 12px, xl 16px, or full to round them.
Page
page is the current one of pages, outlined, its neighbours kept from sm up and a run of two or more pages left out folded into dots; the chevron at either end is off on the first and the last page.
Href
href makes every page a link to that address, from page 2 on with ?page= and its number added (param names it), where without one each page is a button heard by onPageChange.
Disabled
disabled turns every page and chevron off, beside a pagination as it is by default.
API Reference
Pagination
PaginationProps · components/Pagination/Pagination.types.tsIt also takes the props of <nav>.