Pagination
Data Display

Pagination

Navigate between pages of a table or data grid using numbered controls.

Props

PaginationProps props
PropTypeDefaultDescription
pagenumber—1-based controlled page.
defaultPagenumber1Uncontrolled initial page.
pageCountnumber—Total number of pages.
onChange(page: number) => void—Called with the new page number.
maxButtonsnumber7Max numbered buttons before collapsing to ellipses.

Examples

Pagination
Many pages
First and last

PageButton

Pagination is built from PageButton — the individual numbered button, with a current flag for the active page. Use it directly to build a custom pager.

PageButton
ImportTSX
import { Pagination, PageButton } from "@solarius/onset";