Installation
templui add paginationExamples
With Helper
API Reference
Pagination
Root navigation container for pagination controls.
| Name | Type | Default |
|---|---|---|
Unique identifier for the pagination nav element. | | - |
Additional CSS classes to apply to the pagination container. | | - |
Additional HTML attributes to apply to the pagination element. | | - |
Content
List container that holds pagination items.
| Name | Type | Default |
|---|---|---|
Unique identifier for the content list element. | | - |
Additional CSS classes to apply to the content list. | | - |
Additional HTML attributes to apply to the content element. | | - |
Item
Individual list item that wraps pagination links or buttons.
| Name | Type | Default |
|---|---|---|
Unique identifier for the item element. | | - |
Additional CSS classes to apply to the item. | | - |
Additional HTML attributes to apply to the item element. | | - |
Link
Clickable link or button for page navigation.
| Name | Type | Default |
|---|---|---|
Unique identifier for the link element. | | - |
Additional CSS classes to apply to the link. | | - |
Additional HTML attributes to apply to the link element. | | - |
URL for the page link. Required for functional links. | | - |
Whether this page link represents the current page. | | |
Whether the link is disabled and non-clickable. | | |
Previous
Navigation button for going to the previous page.
| Name | Type | Default |
|---|---|---|
Unique identifier for the previous button. | | - |
Additional CSS classes to apply to the button. | | - |
Additional HTML attributes to apply to the button element. | | - |
URL for the previous page. | | - |
Whether the previous button is disabled (e.g., on first page). | | |
Text label to display alongside the chevron icon. | | - |
Next
Navigation button for going to the next page.
| Name | Type | Default |
|---|---|---|
Unique identifier for the next button. | | - |
Additional CSS classes to apply to the button. | | - |
Additional HTML attributes to apply to the button element. | | - |
URL for the next page. | | - |
Whether the next button is disabled (e.g., on last page). | | |
Text label to display alongside the chevron icon. | | - |