Sajari UI

Pagination

Pagination component is used for paging through paged result sets.

Import

Usage

Editable Example

Current page: 1

Compact

Use compact prop to show a shorten form.

Editable Example

Current page: 1

Props

The Pagination component composes the Box component so you can pass props for Box.

NameTypeDefaultDescription
pageCountnumberThe total number of pages.
totalResultsnumberThe total number of results (used to calculate page count if not set).
pageSizenumberThe number of results per page (used to calculate page count if not set).
pagenumberThe current page.
onChangefunctionThe callback handler. The current page is passed as the only argument.
compactdefaultfalseEnable compact mode.