Pagination

Pagination component based on react-paginate.

Pagination

Props

NameTypeRequiredDefaultDescription
pageCountnumberYes-The total number of pages.
pageRangeDisplayednumberYes-The range of pages displayed.
marginPagesDisplayednumberYes-The number of pages to display for margins.
previousButtonLabelstring, JSX.ElementNo-Label for "previous" button
nextButtonLabelstring, JSX.ElementNo-Label for "next" button
onChangefunctionNo-The method to call when a page is clicked. Exposes the current page object as an argument.
pageNumbernumberNo-To override selected page with parent prop.
pageSizeSectionJSX.ElementNo-Placeholder for "page size" component.
goToPageSectionJSX.ElementNo-Placeholder for "go to page" component
changePageSizeSectionJSX.ElementNo-Placeholder for "change page size" component