Pagination

Pagination is a sequence of numbers assigned to pages. It helps split up large content into shorter, easier and more breathable pages.

Default

The pagination component consists of several elements, all of which are optional. So with no extra class, your pagination links will look as follow :

Icons

To customize the previous and next page icons change the value of the prev-icon and prev-icon directives. By default, their values are respectively arrow_back and arrow_forward.

TIP

Vuesax uses the Google Material Icons font library. For a list of all available icons, visit the official Material Icons pageopen in new window.

FontAwesome and other fonts library are supported. Simply use the icon-pack with fa or fas. You still need to include the Font Awesome icons in your project.

By default Vuesax will show a maximum of 9 links. This default behaviour can be changed by setting the max directive to a different integer value.

TIP

The amount given to the max directive should take into account the first and last pages plus the ellipses "..."

WARNING

Setting the max directive to a value lesser then 5 when the total is greater then that will result in the pagination only showing the previous/next buttons as well as the first and last links.

Goto

The goto directive will allow users to directly jump to a desired page.

TIP

If the value given is lower than 1 it will jump to page 1. However if the value is greater than total it will jump to the last page.

Colors

You can change the color of the component with the property color, you can use the Mainopen in new window colors or RGB and HEX colors

WARNING

Only RGB and HEX colors are supported.

Programmatic Inc/Dec

You can also update page number from outside of pagination component.

Current: 5



API #

NameTypeParametersDescriptiondefault
totalNumberThe total links the pagination will havefalse
maxNumberThe maximum pages that should be shown9
gotoBooleantrue, falseAllows you to jump to a specific pagefalse
prev-iconStringCustomize the previous button iconchevron_left
next-iconStringCustomize the next button iconchevron_right
icon-packStringIcon Pack Class NameIcon Pack to be used. If not set, icon will default to Material Icons. ex. FA4 uses fa or fas, FA5 uses fas, far, or fal.material-icons
colorStringChange the color of the paginationprimary