Components
Pagination
Pagination lets the user move through a long list one page at a time and choose how many rows each page shows.
Stable
GitHubAnatomy
Anatomy
import {Pagination} from '@staffbase/spark';
<Pagination.Root>
<Pagination.Previous />
<Pagination.Next />
</Pagination.Root>;API reference
Root
| Name | Type | Description |
|---|---|---|
aria-label | string | The accessible name of the navigation landmark. Override it to localise it or to tell apart several paginations on one page. Default: Pagination |
Previous
| Name | Type | Description |
|---|---|---|
children | ReactNode | The button text. Pass the translated text for the current locale. |
Next
| Name | Type | Description |
|---|---|---|
children | ReactNode | The button text. Pass the translated text for the current locale. |