Pagination
Page number navigation with smart ellipsis, prev/next arrows, and an active-page squircle pill. Fully controlled - manage page state yourself.
Installation
npx stepwise-ui add pagination
Default
More siblings
Few pages
The same component, not a separate mode - once every page fits without a gap, the row is just the page numbers and the arrows.
Props
PropTypeDescription
pagenumberCurrent active page (1-indexed).
totalPagesnumberTotal number of pages.
onChange(page: number) => voidCalled when the user navigates to a new page.
siblingsnumberPages to show either side of active. Default 1.