CoreUI for Vue.js logo
Angular JavaScript / Vanilla JS React.js
  • undefinedGetting started
  • undefinedLayout
  • undefinedForms
  • undefinedComponents
  • undefinedMigration
If you like this project and want to help us, please give us a star ⭐️ on Github. ➡️ undefined Star🙏
  • undefined
  • undefined

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

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".???

  • «
  • ‹
  • ...
  • 5
  • 6
  • 7
  • ...
  • ›
  • »

<CSmartPagination
  :activePage="6"
  :pages="pages"
/>
1
2
3
4

Sizing #

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

  • «
  • ‹
  • ...
  • 5
  • 6
  • 7
  • ...
  • ›
  • »

<CSmartPagination
  :activePage="6"
  :pages="10"
  size="lg"
1
2
3
4

  • «
  • ‹
  • ...
  • 5
  • 6
  • 7
  • ...
  • ›
  • »

<CSmartPagination
  :activePage="6"
  :pages="10"
  size="sm"
1
2
3
4

Alignment #

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

  • «
  • ‹
  • ...
  • 5
  • 6
  • 7
  • ...
  • ›
  • »

<CSmartPagination
  :activePage="6"
  :pages="10"
  align="center"
/>
1
2
3
4
5

  • «
  • ‹
  • ...
  • 5
  • 6
  • 7
  • ...
  • ›
  • »

<CSmartPagination
  :activePage="6"
  :pages="10"
  align="end"
/>
1
2
3
4
5

API #

CSmartPagination #

import { CSmartPagination } from '@coreui/vue-pro'
// or
import CSmartPagination from '@coreui/vue-pro/src/components/pagination/CSmartPagination'
1
2
3

Props #

Prop nameDescriptionTypeValuesDefault
alignHorizontall align
@default 'start'
string-'start'
active-pageCurrent page number
@default 1
number-1
arrowsShow/hide arrows
@default true
boolean-true
dotsShow/hide dots
@default true
boolean-true
double-arrowsShow double arrows buttons
@default true
boolean-true
first-buttonThe content of 'firstButton' button
@default '«'
string-'«'
last-buttonThe content of 'lastButton' button
@default '»'
string-'»'
limitMaximum items number
@default 5
number-5
next-buttonThe content of 'nextButton' button
@default '›'
string-'›'
pagesNumber of pagesnumber-1000
previous-buttonThe content of 'previousButton' button
@default '‹'
string-'‹'
sizeSize of pagination, valid values: 'sm', 'lg'string--

Events #

Event nameDescriptionProperties
active-page-changeOn active page change callback.
On this page
  • Overview
  • Sizing
  • Alignment
  • API
    • CSmartPagination
  • GitHub
  • Twitter
  • CoreUI (Vanilla)
  • CoreUI for Angular
  • CoreUI for React.js

CoreUI for Vue is Open Source UI Components Library for Vue.js.

Code licensed MIT , docs CC BY 3.0 .