Homecomponentsnavigational

Pagination

An interface to show an array of buttons to navigate a page of items.


1 of 5

Overflowing

If the number of pages is beyond a certain threshhold, the pagination shows only a few selected buttons. Hiding the rest.

1 of 15
...

API

numberOfPages
Required
Total number of pages.
number

currentPage
Required
Index of the current page starting at 0.
number

onChange
Required
Called when page is changed.
(page: number) => void
Table of Contents