

Every state


default


hover


focus


field-focus


invalid


first


last


many
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| label | string | "Invoices, pages" | Names the nav for screen readers. |
| page | number | 3 | The page you are on, from 1. |
| pageCount | number | 21 | Page count. |
| href | string | "?page={page}" | Link of a page, with {page} filled in ("/invoices?page={page}"). Used when hrefFor is left out. |
| hrefFor | (page: number) => string | – | Link of a page, when a template is not enough. |
| onPageChange | (page: number) => void | – | Called with the page to go to, from the arrows' clicks and the field. Left out: the browser follows the link. |
| locale | string | "en-GB" | Formats the page numbers (BCP 47). |
| pageText | string | "Page {page} of {count}" | {page} and {count} are filled in. |
| prevLabel | string | "Previous page" | Prev label. |
| nextLabel | string | "Next page" | Next label. |
| jumpLabel | string | "Go to" | Jump label. |
| goLabel | string | "Go" | Go label. |
| errorText | string | "Enter a page from 1 to {count}" | Said when the number is not a page. {count} is filled in. |
| className | string | – | Extra classes on the outer element. |
More pagers
All 4pager-01 is in UI ProGet UI Pro, €199


