pagination
Renders a self-contained pagination bar. Pass total, page, and per-page to drive the page count and active state. The component automatically inserts ellipsis gaps when there are more than seven pages.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
total | number | 100 | Total number of items across all pages. |
page | number | 1 | Currently active page (1-based). |
per-page | number | 10 | Items displayed per page. |
size | "small" | "medium" | "large" | medium | Size passed to the underlying wa-button elements. |
compact | boolean | false | Show only Prev / “Page X of Y” / Next — no numbered buttons. |