Toggle Sidebar B
header.lightDarkMode D

Pagination

Composable page-number navigation. Combine PaginationFirst/Last/Previous/Next with PaginationItem and PaginationEllipsis to build any layout.

When to use Pagination vs PaginationCustom

Pagination gives you primitives to assemble. PaginationCustom is a pre-assembled single-component shortcut for the common case (current page + total).

Default

Number bar with prev/next, first/last, and ellipsis for long ranges.

With edges

showEdges keeps the first and last page visible even on long ranges.

Controlled

Bind v-model:page to a ref so the active page is reflected outside the component.

Current page: 1

API Reference

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

Pagination

Props

PropTypeDefaultDescription
pagenumber1Current page. Supports v-model.
totalnumber0Total number of items.
itemsPerPagenumber10How many items per page.
siblingCountnumber1Sibling pages around the current page.
showEdgesbooleanfalseAlways show first and last page numbers.

Events

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

Slots

SlotDescription
defaultScoped slot exposing { page, pageCount } to build the content row.

PaginationContent / PaginationItem

Props

PropTypeDefaultDescription
valuenumber(PaginationItem) Page number this button selects. Content lays out the items.

PaginationFirst / PaginationPrevious / PaginationNext / PaginationLast

Props

PropTypeDefaultDescription
classstringEdge navigation buttons. Default slot overrides the icon. Forwards to reka-ui.

PaginationEllipsis

Props

PropTypeDefaultDescription
classstringPlaceholder shown where page numbers are collapsed.