Examples
Basic
| Prop | Default | Type | Description |
|---|---|---|---|
total | 0 | number | The total number of items in your list. |
defaultPage | 1 | number | The value of the page that should be active when initially rendered. Use when you do not need to control the value state. |
disabled | false | boolean | When true, prevents the user from interacting with item. |
itemsPerPage | 10 | number | Number of items per page. |
page | - | number | The controlled value of the current page. Can be binded as v-model:page. |
showEdges | false | boolean | When true, always show first page, last page, and ellipsis. |
Read more in Reka Pagination Root API.
Sibling Count
| Prop | Default | Type | Description |
|---|---|---|---|
siblingCount | 2 | number | The number of surrounding pages displayed around the current page. |
Visibility
| Prop | Default | Type | Description |
|---|---|---|---|
showFirst | true | boolean | Displays the first page button. |
showLast | true | boolean | Displays the last page button. |
showPrev | true | boolean | Displays the previous page button. |
showNext | true | boolean | Displays the next page button. |
showListItem | true | boolean | Displays the list items. |
Current Page: 1
Size
| Prop | Default | Type | Description |
|---|---|---|---|
size | sm | string | Adjusts the size of the entire pagination. |
firstPageSize | sm | string | Customizes the size of the first page button. |
lastPageSize | sm | string | Customizes the size of the last page button. |
prevPageSize | sm | string | Customizes the size of the previous page button. |
nextPageSize | sm | string | Customizes the size of the next page button. |
listItemSize | sm | string | Customizes the size of the page list items. |
ellipsisSize | sm | string | Customizes the size of the ellipsis indicator. |
By default, the size prop applies to height, width, padding, and font size. If you only want to change the size of the button, use the square prop. Refer to the Button square section for more information.
Read more in Button size section
Variant and Color
| Prop | Default | Type | Description |
|---|---|---|---|
pagination-selected | solid-primary | {variant}-{color} | The color of the selected page. |
pagination-unselected | solid-white | {variant}-{color} | The color of the unselected page. |
pagination-ellipsis | text-black | {variant}-{color} | The color of the ellipsis. |
Read more in Button variant and color section
Rounded
Read more in Button rounded section
Sub Components
| Prop | API reference | Description |
|---|---|---|
_pagination-list-item | Reka Pagination ListItem API | Customizes the pagination list item component. |
_pagination-prev | Reka Pagination Prev API | Customizes the previous page navigation button. |
_pagination-next | Reka Pagination Next API | Customizes the next page navigation button. |
_pagination-first | Reka Pagination First API | Customizes the first page navigation button. |
_pagination-last | Reka Pagination Last API | Customizes the last page navigation button. |
_pagination-ellipsis | Reka Pagination Ellipsis API | Customizes the ellipsis indicator in the pagination. |
_pagination-list | Reka Pagination List API | Customizes the pagination list component. |
Slots
| Name | Props | Description |
|---|---|---|
first | - | Customizes the first page navigation button. |
last | - | Customizes the last page navigation button. |
prev | - | Customizes the previous page navigation button. |
next | - | Customizes the next page navigation button. |
list-item | item, page | Customizes the pagination list item component. |
ellipsis | - | Customizes the ellipsis indicator in the pagination. |
Presets
shortcuts/pagination.ts
Props
types/pagination.ts