Skip to main content

Pagination

A page-number control with previous/next buttons and a windowed page range (with ellipses) for large page counts.

Playground​

…
…
<Pagination
page={10}
pageCount={20}
siblingCount={1}
onChange={setPage}
/>

Small page count​

<Pagination page={page} pageCount={5} onChange={setPage} />

Props​

PropTypeDefaultDescription
pagenumberRequired. Current page (1-indexed).
pageCountnumberRequired. Total number of pages.
onChange(page: number) => voidRequired. Called with the pressed page number.
siblingCountnumber1How many page numbers to show around the current page.
activeColorTVajraColors'primary'Background of the current page's cell.
inactiveColorTVajraColors'text'Text/icon color of other cells and controls.
prevIconTVajraIconComponentPrevious-page icon. Defaults to a plain ‹ glyph.
nextIconTVajraIconComponentNext-page icon. Defaults to a plain › glyph.