Pagination
UI SDK Pagination that works standalone: page, pageCount or total and pageSize, onPageChange with details, overridable labels.
Example
pagination-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
Pagination
| Prop | Type | Default |
|---|---|---|
labels | Partial<PaginationLabels> | – |
Also takes every prop of UI SDK Pagination.
PaginationList
PaginationLink
PaginationPrevious
| Prop | Type | Default |
|---|---|---|
tooltip | ControlTooltipOption | – |
Also takes every prop of UI SDK PaginationPrevious.
PaginationNext
| Prop | Type | Default |
|---|---|---|
tooltip | ControlTooltipOption | – |
Also takes every prop of UI SDK PaginationNext.
PaginationFirst
PaginationLast
PaginationEllipsis
Other exports
PaginationItemcreatePaginationControllerdefaultPaginationLabelspaginationRangetype PaginationLabelstype PaginationPropsAccessibility
- A navigation of page buttons with the current page marked; labels are overridable.
Agent actions
Agents go to a page by number.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.