Koala logo Design
Esc
No matches for “
↑↓ navigate open Esc close
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).

<koala-pagination>
Canonical (page 1 of 10)
Middle of a long list (page 7 of 24)

Ellipses appear when there's a gap between first / current-window / last. Adjust the window with neighbours.

Last page (page 10 of 10)

The next-arrow is disabled (no link, low contrast). Same on the prev-arrow for page 1.

Wider window (neighbours=2)

Pages within ±N of the current page are always shown. Default neighbours=1.

Single page (suppressed)
(Nothing renders when there's only one page.)
Props
Attribute Values Notes
current-pageint (1-indexed)Required. Clamped to [1, total-pages].
total-pagesintRequired. Suppresses the nav entirely when ≤ 1.
page-url-templateString containing {page}Required. The literal {page} token is replaced per page.
neighboursintDefault 1. Pages within ±N of current are always rendered.
classTailwind classesMerged with the nav's base classes.