Toggle Sidebar B
header.lightDarkMode D

Pagination Custom

Single-component pagination ready to drop in. Renders first/last, prev/next, page numbers, and an ellipsis for long ranges.

Default

Just pass total, itemsPerPage, and v-model:page the current page.

Sibling count

Increase siblingCount to show more page numbers on each side of the current page.

Few pages

With a small total the bar renders every page and skips the ellipsis.

API Reference

Props, events, and slots for each sub-component.

PaginationCustom

Props

PropTypeDefaultDescription
pagenumber1Current page. Supports v-model:page.
totalnumber0Total number of items.
itemsPerPagenumber10Items per page; drives the page count.
siblingCountnumber1Page numbers shown on each side of the current page.

Events

EventDescription
update:pageFires when the page changes. Enables v-model:page.