Pagination

An interactive component designed to navigate through multiple pages of content.

Usage

Basic Pagination

Render a Pagination:

<Pagination totalRecords={100} recordsPerPage={10} currentPage={1} onPageChanged={(page) => console.log(`Navigated to page: ${page}`)} highContrast />

Variants

Change the visual appearance using the variant prop.

<Flex direction="column" width="100%">
<Pagination totalRecords={100} recordsPerPage={10} currentPage={1} onPageChanged={(page) => console.log(`Navigated to page: ${page}`)} variant="outlined" />
<Pagination totalRecords={100} recordsPerPage={10} currentPage={1} onPageChanged={(page) => console.log(`Navigated to page: ${page}`)} highContrast variant="solid" />
</Flex>

Custom Page Count

Specify the number of visible page buttons using the showPageCount prop.

<Pagination totalRecords={100} recordsPerPage={10} currentPage={5} showPageCount={3} onPageChanged={(page) => console.log(`Navigated to page: ${page}`)} highContrast />

API

Props

PropTypeDefaultRequired
classNamestring--
styleCSSProperties--
totalRecordsnumber-Yes
recordsPerPagenumber-Yes
onPageChanged(pageNumber: number) => void-Yes
currentPagenumber-Yes
showPageCountnumber5-
variant'outlined' | 'solid''outlined'-
MarginPropsToken<MarginProps>--
colorThemeAccentColor--
radiusThemeRadius--
sizeResponsive<Size>'medium'-
highContrastboolean--
shadowThemeShadow--
Menu
Previous
AutoComplete
Next