Navigation
Pagination
Moves through pages of results. A compact counter with previous and next, or a row of dots.
Group: Navigation. Exports: Pagination. shadcn/ui equivalent: Pagination (partial parity).
Usage
import { Pagination } from "./halaska-kit";
Pagination props
currentnumber:totalnumber:onChange(value) => void: Called with the new value.variantstring(default "numbers"): Visual variant.
Accessibility
- The numbers variant has the navigation role, labelled "Pagination". Previous and next are labelled buttons and are disabled at the first and last page.
- The counter carries a full label, for example Page 2 of 5.
- The dots variant labels each dot with its page number and marks the current one with aria-current.
Known gaps
- No numbered page links.
- No ellipsis for long ranges.
- No first or last page controls.
- Controls are buttons, not links, so pages have no URL of their own.
Used in
Halaska UI · Components · Patterns · Screens · Install