Components
Pagination
Pagination
Page-numbered nav for deep-linkable lists. The complement of <koala-load-more> —
use load-more for infinite-scroll feeds, pagination for lists where the URL should reflect the
current page (shareable invoice / report views).
Ellipses appear when there's a gap between first / current-window / last. Adjust the window with neighbours.
The next-arrow is disabled (no link, low contrast). Same on the prev-arrow for page 1.
Pages within ±N of the current page are always shown. Default neighbours=1.
(Nothing renders when there's only one page.)
Props
| Attribute | Values | Notes |
|---|---|---|
| current-page | int (1-indexed) | Required. Clamped to [1, total-pages]. |
| total-pages | int | Required. Suppresses the nav entirely when ≤ 1. |
| page-url-template | String containing {page} | Required. The literal {page} token is replaced per page. |
| neighbours | int | Default 1. Pages within ±N of current are always rendered. |
| class | Tailwind classes | Merged with the nav's base classes. |