Skip to content

NavigationPagination ​

Pagination made of real links (it works without JavaScript and can be crawled), or buttons. The page can live in the URL.

ts
import { NavigationPagination } from '@zairakai/vue-components/Navigation'

Usage ​

vue
<NavigationPagination />

Example ​

Page 3

vue
<script setup>
  import { ref } from 'vue'

  const page = ref(3)
</script>

<template>
  <NavigationPagination
    v-model="page"
    :pages="12"
  />
  <p>Page {{ page }}</p>
</template>

Props ​

NameTypeDefaultDescription
idstring
classstring
modelValuenumberundefinedThe current page, starting at 1.
pagesnumberEither the number of pages...
totalItemsnumber...or the number of items and the size of a page.
pageSizenumber10
siblingsnumber1
boundariesnumber1
queryParamstringKeep the page in this query parameter of the URL (?page=3). The items become real links.
hrefForfuncBuild the link of a page yourself (a router link, another URL scheme). The items become real links.
labelstring'Pagination'
previousLabelstring'Previous page'
nextLabelstring'Next page'
pageLabelstring'Page'

Events ​

NameDescription
update:modelValue
change

Slots ​

NameDescription
previous
next

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.