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

Playground

Every prop, live, and the code it takes.

Page size
users.tsx
import { Pagination } from "@qeetrix/react/experimental";

const [offset, setOffset] = useState(0);

<Pagination
  offset={offset}
  pageSize={25}
  total={1284}
  onOffsetChange={setOffset}
/>

02

With a total

offset and pageSize, as the API takes them: the range, announced as it changes, then First, Previous, Next and Last.

03

Without a total

For an API that doesn't count: no Last, and Next stays on while a full page comes back.

04

Cursor paging

hasPrevious and hasNext, for an API that gives the next cursor: Previous and Next alone.

05

Show more

ShowMore appends the next page under a growing list, then says there's no more.

Priya Sharma signed in · 2 minutes agoRahul Verma added a passkey · 1 hour ago

06

Rows per page

pageSizes offers a select; onPageSizeChange takes the new size, back on the first page.

07

Loading

loading turns the buttons off while the next page comes.

08

Under a table

In a Card's footer: the rows and the bar move together.

Users

NameStatus
Priya SharmaActive
Rahul ReddyActive
Ananya RaoActive
Vikram NairInvited
Meera JoshiSuspended

09

In Hindi

QeetrixProvider's messages and locale: the strings, and the numbers grouped for India.

Next — PaginationUsage