Back to Pagination
Pagination

Page links

Previous, numbered pages, ellipsis, and next.

API

PropTypeDefaultDescription
page / defaultPagenumberCurrent page (1-indexed).
totalPages*numberTotal number of pages.
onPageChange(page: number) => voidCalled when the user selects a new page.
getHref(page: number) => stringWhen set, renders anchor links instead of buttons.
siblingCountnumber1Pages shown on each side of the current page.
boundaryCountnumber1Pages always shown at the start and end.
showFirstLastbooleanfalseShow jump-to-first/last controls.
hideOnSinglePagebooleanfalseRender nothing when `totalPages` is 1.
isActive (PaginationLink)booleanMarks the current page with `aria-current="page"`.
size"sm" | "md" | "lg" | "icon"iconControl size from the Button scale.
View full API on Pagination

More Pagination examples