0.1.3 • Published 12 months ago

react-roll-up-count v0.1.3

Weekly downloads
-
License
-
Repository
github
Last release
12 months ago

npm version code style: prettier

React Roll Up Count

This package is your goto solution for adding animated, interactive counters to your react applications. With just a single animation at the moment as we intend to make it more easier for you with different kinds of rollers and much more if you stay tuned.

Getting Started

These instructions will get you a copy of the project up and running on your local machine. Happily follow the steps and you're good to go

Installation

To install and set up the library, run:

$ npm install react-roll-up-count

Usage

npm.io

Example:

import Roller from "react-roll-up-count"

const MyComponent = () => {

  return (
    <div className="App">
        <Roller value={123456} />
    </div>
  );
};

Props

PropTypedefault values
valuenumber''
refrefobject/optional''
transitionDurationnumber/optional0.5
classNamestring/optional""
fontSizestring/optional40px
heightstring/optional40px
widthstring/optional20px

className:

When you want to overide default styles, fonts etc....You can also decide to change height and width from the class here. When you use className, width height, margin and fontSize params will not be usefull anylonger, you have to supply them in your class.

height:

When you want to overide height of each digit. Should have the unit attach like px/em

width:

When you want to overide width of each digit. Should have the unit attach like px/em

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Add your changes: git add .
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request :sunglasses:

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Hussaini Bulama - Initial work - Hussaini

See also the list of contributors who participated in this project.

License

MIT License © Hussaini Bulama