Pagination

Pinned to the bottom of the list panel, 50 per page: the range in Body/XS text/tertiary, then previous and next.

Pages

Previous is text/disabled on page 1. Changing page is instant.

Usage

import { Pagination } from "@kuori/ui/inbox";
<Pagination label={paginationLabel(page, total)} hasPrevious={page > 1} hasNext={page < pages} onPrevious={back} onNext={next} />

Pagination

PropTypeDescription
labelRequired
string
“1–50 of 48,979”, with an en dash
hasPreviousRequired
boolean
Off on page 1
hasNextRequired
boolean
Off on the last page
onPreviousRequired
() => void
Previous page
onNextRequired
() => void
Next page
className
string
Additional CSS classes