Pagination
Page navigation: previous/next, optional first/last, page numbers with ellipses; the number of items stays constant so it does not jump.
Page 10 of 20
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-pagination> · RayPagination
JS: setPage(n), next(), previous(), first(), last(); page (clamped value).
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
total | total | number | 1 | Number of pages. |
value | value | number | 1 | Current page (1-based). |
siblings | siblings | number | 1 | Pages shown on each side of the current one. |
boundaries | boundaries | number | 1 | Pages always shown at the start and the end. |
withEdges | with-edges reflects | boolean | Adds first/last page buttons. | |
hideControls | hide-controls reflects | boolean | Hides the previous/next (and first/last) buttons. | |
color | color reflects | string | Color of the current page: a palette color or any CSS color. Default: the primary color. | |
size | size reflects | xs | sm | md | lg | xl | sm | Item size. |
radius | radius | xs | sm | md | lg | xl | full | Corner radius of the items. | |
disabled | disabled reflects | boolean | Not interactive. | |
label | label | string | Pagination (text pagination.label) | Accessible name of the navigation landmark. |
| Event | Description |
|---|---|
change | The user went to another page (read `value`). |
| Part | Description |
|---|---|
root | The <nav> landmark. |
list | The list of items. |
item | Every button (pages and controls). |
active | The current page button. |
control | Previous/next/first/last buttons. |
dots | An ellipsis. |
Texts
What it writes itself, in English; setStrings() translates them (Getting started: Languages).
| Key | English |
|---|---|
pagination.label | Pagination |
pagination.previous | Previous page |
pagination.next | Next page |
pagination.page | Page {page} |