Pagination

import Pagination from "@kiwicom/orbit-components/lib/Pagination";
<Pagination pageCount={1337} selectedPage={69} />

Props

NameTypeDefaultDescription
dataTeststringOptional prop for testing purposes.
hideLabelsbooleantrueIf false, the Previous and Next labels will be visible.
labelPrevstringThe text label for the previous page call to action.
labelNextstringThe text label for the next page call to action.
labelProgressReact.NodeThe text label for progress indicator.
onPageChangenumber => voidFunction for handling onPageChange event. See Functional specs
pageCountnumberThe page count to render into separated buttons. See Functional specs
selectedPagenumber1The index number of the selected page.
sizeenum"normal"The size of the Pagination.

enum

size
"small"
"normal"

Functional specs

<Pagination onPageChange={selectedPage => doSomething(selectedPage)} />