Pagination
This topic describes the anatomy, API reference, and variations of the Pagination primitive component.
Anatomy
Anatomy
Using the component
Using the component
The following tabs describe use of the Pagination primitive component.
API reference
API reference
Pagination.Root
The Pagination.Root component wraps all the parts for the pagination component.
Children: Pagination.Pages, Pagination.PrevPage, Pagination.NextPage, Pagination.FirstPage, and Pagination.LastPage
|
Name |
Description |
|---|---|
|
|
The amount of pages of the pagination component. |
|
|
Current page value |
|
|
Default selected page value. |
|
|
A callback that fires when the page value changes. |
|
|
An optional callback to handle when a click on a page number happens. |
|
|
The children of the |
Pagination.Pages
The Pagination.Pages component wraps all the pages.
Parent: Pagination.Root
Children: Pagination.Page
|
Name |
Description |
|---|---|
|
|
The children of the component |
Pagination.Page
The Pagination.Page component is a page number link.
Parent: Pagination.Pages
|
Name |
Description |
|---|---|
|
|
The page number for the link. |
|
|
The children of the component |
Pagination.PrevPage
The Pagination.PrevPage component handles the previous page click.
Parent: Pagination.Root
|
Name |
Description |
|---|---|
|
|
An optional callback to handle when a click happens. |
|
|
The children of the component |
Pagination.NextPage
The Pagination.NextPage component handles the previous page click.
|
Name |
Description |
|---|---|
|
|
An optional callback to handle when a click happens. |
|
|
The children of the component |
Pagination.FirstPage
The Pagination.FirstPage component is link that redirects to the first page.
Parent: Pagination.Root
|
Name |
Description |
|---|---|
|
|
The children of the component |
Pagination.LastPage
The Pagination.LastPage component is link that redirects to the last page.
Parent: Pagination.Root
|
Name |
Description |
|---|---|
|
|
The children of the component |

