Calm motion: animations on this site only fade, with no movement
Pagination
Page list
Moving between pages of results. For a feed people read to the end, InfiniteScroll or a Load more button fits better. Pages suit results people come back to or share.
Basic
page: 7
- With
href, pages are links (through your router when provided), so each page has a URL. Without it they are buttons andv-modelholds the page. siblingssets how many pages show either side of the current one. The rest collapse to….- The current page has
aria-current="page".labels.prev/labels.nextname the arrows.
Usage
ts
import { BlessPagination } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
total* | number | — | |
siblings | number | 1 | pages shown either side of current |
label | string | "Pagination" | |
href | ((page: number) => string) | — | render <a href> using this fn instead of buttons |
labels | Partial<{ prev: string; next: string; page: (page: number) => string; }> | — | |
modelValue | number | 1 |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: number] |