Skip to content

Pagination

Prev/Next pagination bar with page number buttons and a results range summary. Used internally by DataTable.

Basic

Tailwind v4
vue
<script setup>
const page = ref(1)
</script>

<Pagination v-model="page" :total="87" :per-page="10" />

Few pages

Tailwind v4
vue
<Pagination v-model="page" :total="30" :per-page="10" />

Empty state

Tailwind v4
vue
<Pagination v-model="page" :total="0" />

Props

PropTypeDefaultDescription
modelValuenumberCurrent page (1-indexed) — use with v-model
totalnumberTotal record count
perPagenumber20Records per page

Events

EventPayloadDescription
update:modelValuenumberEmitted when any page button, prev, or next is clicked

Private — Jetpack Labs internal use only