current
number
(required)
total
number
(required)
onPageChange
(newPage: number) => void
(required)
A callback handler which is called when the user clicks a new page. The newPage
parameter is indexed from 1
Note that the active page will not change unless the current
prop is updated to reflect the new page (as in the example above)
maxWidth
number
(optional)