Pagination

Usage

Pagination allows you to divide large amounts of content into smaller chunks across multiple pages. It includes truncation and default index selection.

Best practices

Do
  • Use pagination for lists with more than 25 items.
  • Use truncation to determine the number of pages that will be shown. Be aware of the screen size or space available.
Don't
  • Do not rely exclusively on pagination for navigation purposes. Consider providing a search, filters, or any other method to locate the data.

Examples

Live Preview

Props

NameDescription Type Default Values
current
Specifies current pagenumber
pages Required
Number of pagesnumber
truncate-at
Number buttons/pages (excluding "Previous" and "Next")number
translations
Object with all necessary translations. You can find a list of required translations in config.jsobject{ prevBtnAriaLabel, prevBtnLabel, nextBtnAriaLabel, nextBtnLabel }

Events

NameDescription Type
change
Emits current page{ "names": [ "String" ] }