Vivid API

Pagination

Help users navigate forwards and backwards through a series of pages. For example, search results or guidance that's divided into multiple pages.

Total

The total attribute sets the total amount of pages. If set to 0 (it’s default value) both ‘Previous’ and ‘Next’ links will be disabled.

Selected Index

The selected-index attribute sets the currently selected page.

The value is zero-indexed. It is set to 0 if total pages is 0.

Size

The size attribute sets the pagination’s buttons sizes.

Shape

The shape attribute sets the pagination’s buttons shapes.

The nav-icons attribute changes the pagination’s “Previous” and “Next” buttons to be chevron icons.