Pagination
Usage
Use a v-model to get a reactive page alongside a total which represents the total of items. You can also use the page-count prop to define the number of items per page which defaults to 10.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}Max
Use the max prop to set a maximum of displayed pages. Defaults to 7, being the minimum.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}Size
Use the size prop to change the size of the buttons.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}Links
Use the to property to transform buttons into links. Note that it must be a function that receives the page number and returns a route destination.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}Disabled
Use the disabled prop to disable all the buttons.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}Active / Inactive
Use the active-button and inactive-button props to customize the active and inactive buttons of the Pagination.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}Prev / Next
Use the prev-button and next-button props to customize the prev and next buttons of the Pagination.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}First / Last
Use the first-button and last-button props to customize the first and last buttons of the Pagination.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}Slots
prev / next
Use the #prev and #next slots to set the content of the previous and next buttons.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}first / last
Use the #first and #last slots to set the content of the first and last buttons.
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}Props
config.default.size"md""2xs""xs""sm""lg""xl"7{}null"\u2026"10config.default.activeButton as Buttonconfig.default.inactiveButton as Buttonconfig.default.firstButton as Buttonconfig.default.lastButton as Buttonconfig.default.prevButton as Buttonconfig.default.nextButton as ButtonfalsefalsefalseConfig
{
"message": "You should use slots with <ContentRenderer>",
"value": {},
"excerpt": false,
"tag": "div"
}