Pagination

Install

import {Pagination} from '@xsolla/uikit';

Examples

Small

Usage

<Pagination current={1} total={100} perPage={10} onChangePage={this.handleChangePage} />

API

PropertyDescriptionTypeDefault
currentCurrent page numbernumber
totalTotal items countnumber
perPageShow items per pagenumber
size?Pagination button size'sm', 'md'md
renderItem?Render pagination elementProps => React$Elementprops => <div {...props} />
onChangePage?On change pagenumber => void() => void 0