Skip to content

Pagination

Pagination navigation with boundary and sibling controls.

Usage

vue
<script setup>
import { ref } from "vue";
import { ArchPagination } from "@archora/ui";

const page = ref(1);
</script>

<template>
  <ArchPagination v-model:page="page" :page-count="12" show-edges />
</template>

Live sandbox

Pagination can be tested directly on this page.

interactive
<Pagination />

Props

PropTypeDefaultDescription
pagenumber1Current page.
pageCountnumber-Total page count.
siblingCountnumber1Sibling pages around the current page.
boundaryCountnumber1Pages at the beginning/end.
size"sm" | "md" | "lg""md"Size.
disabledbooleanfalseDisables the component.
showEdgesbooleantrueShows first/last page controls.
previousLabelstring"Previous"Previous button text/ARIA label.
nextLabelstring"Next"Next button text/ARIA label.

Events

EventPayloadDescription
update:pagepage: numberpage change.
changepage: numberValue change.