Skip to main content
  1. Docs
  2. Components
  3. Navigation

Pagination

Pages of a long list, for offset and limit APIs: the range on show, then First, Previous, Next and Last.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.6
Renders
<nav aria-label="Pagination">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A server-paged list: users, sessions, audit events.
  • Under a Table, in its Card's footer.
Not for
  • A few dozen rows: show them allTable
  • Steps of a flowSteps

02

Anatomy

  1. 1pagination-size<span>Rows per page, with pageSizes: a Select.
  2. 2pagination-range<span role="status">The range on show, announced politely as it changes.
  3. 3previous<button>First and Previous: off on the first page.
  4. 4next<button>Next and Last: Last only with a total.

03

Do and don't

Under the list
DoAt the list's end, where the rows run out.
Don'tAbove it: paging before reading.
Back to the first page
DoA new page size, or a new filter: the first page of the new list.
Don'tThe old offset kept: a page past the end, empty.

04

Content

  • The range reads "26–50 of 1,284", grouped for the locale.
  • Its strings come from QeetrixProvider, in English and Hindi.
  • Each bar on a page is a landmark: name each apart, with messages.label.
Next — PaginationAPI