Pearson-Higher-Ed / pagination

https://pearson-higher-ed.github.io/pagination/
MIT License
0 stars 0 forks source link

Pagination ReactJS control

Build Status

Provides a React pagination component. Shows page buttons up to the maxButtons value as well as a Prev and Next button. Will show ellipses button(s) when applicable. Will highlight the activePage. Will always show first and last page buttons.

Usage

This project supports Node v4+ and npm 2+ installed in your development toolchain.

Install and save in your package.json:

npm install @pearson-components/pagination --save

Additionally, since this component is published to NPM, it can be imported into the application through a script tag.

<script type="text/javascript" src="https://unpkg.com/@pearson-components/pagination@1.0.2/build/dist.pagination.js"></script>

Import Pagination component:

import Pagination from '@pearson-components/pagination';

React props

External Dependencies

React and ReactDOM (v0.14 or v15) are external dependencies required to use this component. They are npm-installable or available from a third-party CDN.

This component targets the styling in the Pearson Elements SDK.

Next Step

If you are a contributor to this component's development, see guidance on contributing.