Tonic UI
Getting StartedColor ModeColor StyleVersionsContributing
THEME
BordersBreakpointsColorsOutlinesPositionsSpacingSizesShadowsTypography
BUILDING BLOCKS
BoxControlBox
UTILITIES

Pagination

Pagination

Import

Usage

EDITABLE EXAMPLE

Disable

EDITABLE EXAMPLE

Default page

EDITABLE EXAMPLE

On page change

EDITABLE EXAMPLE

Boundary count

EDITABLE EXAMPLE

Sibling count

EDITABLE EXAMPLE

Full mode

EDITABLE EXAMPLE

Reduced mode

EDITABLE EXAMPLE

Minor mode

EDITABLE EXAMPLE

Props

NameTypeDefaultDescription
countnumber1The total number of pages.
disabledbooleanfalseIf true, the pagination component will be disabled.
defaultPagenumber1The page selected by default when the component is uncontrolled.
pagenumberThe current page. when the component is controlled.
prevLabelstring or react element'<'The previous button label
nextLabelstring or react element'>'The next button label
ellipsisLabelstring or react element'...'The next button label
boundaryCountnumber1Number of always visible pages at the beginning and end.
siblingCountnumber1Number of always visible pages before and after the current page.
onChangefunctionCallback fired when the page is changed.

Signature:
function(event: object, page: number) => void
event: The event source of the callback.
page: The page selected.