Vue Smart Pagination Component

Smart Pagination

CoreUI PRO
This component is part of CoreUI PRO – a powerful UI library with over 250 components and 25+ templates, designed to help you build modern, responsive apps faster. Fully compatible with Angular, Bootstrap, React.js, and Vue.js.

Documentation and examples for showing smart pagination to indicate a series of related content exists across multiple pages.

Available in Other JavaScript Frameworks

CoreUI Vue Smart Pagination Component is also available for Angular and React. Explore framework-specific implementations below:

On this page

Overview

React smart pagination component consists of button-like styled links, that are arranged side by side in a horizontal list.

We use a large block of connected links for our pagination, making links hard to miss and easily scalable—all while providing large hit areas. SmartPagination is built with list HTML elements so screen readers can announce the number of available links. SmartPagination also use a wrapping <nav> element to identify it as a navigation section to screen readers and other assistive technologies.

In addition, as pages likely have more than one such navigation section, SmartPagination provide a descriptive aria-label for the <nav> to reflect its purpose. For example, if the pagination component is used to navigate between a set of search results, an appropriate label could be aria-label="Search results pages".???

vue
<template>
  <CSmartPagination :activePage="6" :pages="10" />
</template>

<script setup>
import { CSmartPagination } from '@coreui/vue'
</script>

Sizing

Fancy larger or smaller pagination? Add size="lg" or size="sm" for additional sizes.

vue
<template>
  <CSmartPagination :activePage="6" :pages="10" size="lg" />
</template>

<script setup>
import { CSmartPagination } from '@coreui/vue'
</script>
vue
<template>
  <CSmartPagination :activePage="6" :pages="10" size="sm" />
</template>

<script setup>
import { CSmartPagination } from '@coreui/vue'
</script>

Alignment

Change the alignment of pagination components with align="start", align="center" or align="end".

vue
<template>
  <CSmartPagination :activePage="6" :pages="10" align="center" />
</template>

<script setup>
import { CSmartPagination } from '@coreui/vue'
</script>
vue
<template>
  <CSmartPagination :activePage="6" :pages="10" align="end" />
</template>

<script setup>
import { CSmartPagination } from '@coreui/vue'
</script>