@watchmen/react-ultimate-pagination-material-ui
v2.0.4
Published
React.js pagination component with Material UI theme
Downloads
6
Readme
react-ultimate-pagination-material-ui
React.js pagination component with Material UI theme
usage
import createUltimatePagination from 'react-ultimate-pagination-material-ui'
// all args are optional
const Pagination = createUltimatePagination(
{
buttonClass,
wrapperClass,
wrapperComponent
}
)
//...
<Pagination
currentPage={page.currentPage}
totalPages={page.totalPages}
boundaryPagesRange={1}
siblingPagesRange={1}
hidePreviousAndNextPageLinks={false}
hideFirstAndLastPageLinks={false}
hideEllipsis={false}
onChange={this.handlePage}
/>
//...
wrapperComponent
defaults to adiv
if not specified- use
wrapperClass
to style defaultdiv
or pass styledwrapperComponent
wrapperClass
will be ignored ifwrapperComponent
is passed