@iq-tech/reactnator

1.0.0 • Public • Published

Reactnator

Installing

In your project folder, type on console

yarn add reactnator

or you can use NPM aswell

npm i reactnator

Dependencies

  • React
  • ReactDOM
  • Recompose
  • scroll-to-target

Api Reference

Property Type Default Description
total number 1 total of pages
currentPage number 1 page number that will receive active class
onChange function page => console.log(page) onChange handler, that receive page with new current page value
scrollTo object false allows scroll to some point on click, this object receive these following values { selector: #valid-dom-element, speed: 1, offset: 0}
pageNumberStyle string reactnator__page-number optional style to page numbers
activePageStyle string reactnator__page-number--active optional style to active page number

License

Licensed under the MIT license.

Dependents (0)

Package Sidebar

Install

npm i @iq-tech/reactnator

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

74.8 kB

Total Files

12

Last publish

Collaborators

  • timfts
  • loadfms
  • iq360
  • giioohbernini