Pagination

Pagination divided content into several pages and allows users to navigate in between.

Basic

Basic usage of Pagination.

More

Pagination will diaplay ellipsis for indicating previous or continuing results when the page amount is overflow.

Total

Display total number of data by setting displayTotal to true.

Page sizes

Displaying the pagination count divided by total & pageSize, often used on displaying numbers of data in a page.

Controlled

Example of controlled pagination.

API

Pagination
PropDescriptionTypeDefault
currentPageCurrent page numbernumber1
displayTotalWhether to display total of data itemsbooleanfalse
onChangeCallback when Pagination index was clicked(pageNumber: number) => void-
pageSizeNumber of data items per pagenumber1
totalTotal number of data itemsnumber5