Skip to content
On this page

Pagination ​

Allows the division of content into manageable pages, facilitating organized navigation through large sets of data or information.

The Component ​

Usage ​

The pagination component adapts and calculates the number of pages based on the given number of items and items per page. It's responsive, on mobile it changes into previous and next buttons to fit a smaller width.

Props ​

NameDefaultDescriptionType
currentPage1The currently active pageNumber
totalItems100The total number of resultsNumber
itemsPerPage10The number of results shown per pageNumber
currentPageClasspage-btn-currentClass for the currently active pageString

Events ​

NameArgumentDescription
@changePagepage numberEmitted when page is changed

Dependencies ​

  • heroicons