Rebar UI

1.0

imitation

Pagination

Page through a list.

PaginationPages with arrows

Showing 21 to 30 of 118 tasks

Last page
Disabled

In context

Task tablePage count on the left, pages on the right
TaskOwnerDue
Draft launch checklistPriya24 Oct
Book crew interviewsLeo17 Oct
Icon auditMaya24 Oct

Page 3 of 12

Props

PropTypeRequiredDefault
currentnumber | undefinedNo—
defaultCurrentnumber | undefinedNo1
totalnumberYes—
onChange((page: number) => void) | undefinedNo—
aria-labelstring | undefinedNoPagination
disabledboolean | undefinedNo—
classNamestring | undefinedNo—

Accessibility

A real <nav aria-label> landmark; the active page carries aria-current="page"; Previous and Next disable themselves at the ends. Only the first, last, current and its neighbours render, with an ellipsis for the rest.

data-rebar-* attributes

data-rebar-component="pagination"; data-rebar-part is "prev", "page" or "next"; the active page carries data-rebar-active.

Migrating to Ant Design

A close, low-risk rename: AntD's Pagination takes the same current/total/onChange shape (its total counts items, not pages).