Skip to content
kapable

Pagination

Navigation · 2 exports · v0.1.0 · showcase

Windowed page navigation rendered as server-owned links.

Browse 72 component families

Usage

Pagination usage
<Pagination page={6} pageCount={20} href={(page) => `?page=${page}`} />

API

Pagination API

PaginationProps

Page navigation. Pure links — works JS-off, no island — with the windowing algorithm frozen into tested code (the part apps get wrong). Machine register: mono tabular numerals; the current page thickens its rule in accent, echoing the Tabs grammar. `compact` renders ‹ page N of M › for tight rows (variants law).

Pagination props
proptypenotes
pagenumberCurrent page, 1-based (clamped).
pageCountnumber
href(page: number) => stringBuilds the href for a page number, e.g. (p) => `/deploys?page=${p}`.
label?stringAccessible name for the nav. Default 'Pagination'.
window?numberNumbers kept around the current page (default 1).
compact?boolean‹ page N of M › — no number strip.
prevLabel?stringi18n: default 'Previous page' / 'Next page'.
nextLabel?string
mix?MixInput

More in Navigation

More in Navigation