pure_counter
v0.1.8
Published
Pure increment and decrement functionality components
Downloads
201
Readme
pure_counter
pure_counter is a collection of React components for implementing pure increment and decrement functionality. It provides customizable components that smoothly animate numerical values within a given range. With easy installation and usage, it offers a simple way to incorporate increment and decrement features into your React applications.
Installation
You can install the package via npm:
npm install pure_counter
Usage
import { PureIncrement, PureDecrement } from 'pure_counter';
// Example usage of PureIncrement
<PureIncrement start={0} end={10} duration={1} className="purecounter" />
// Example usage of PureDecrement
<PureDecrement start={10} end={0} duration={1} className="purecounter" />
Props
PureIncrement
| Prop | Type | Description | | -------- | -------- | -------- | | start | number | The starting value | | end | number | The ending value | | duration | number | Duration in seconds| | className| string | CSS class name |
PureDecrement
| Prop | Type | Description | | -------- | -------- | -------- | | start | number | The starting value | | end | number | The ending value | | duration | number | Duration in seconds| | className| string | CSS class name |
👥 Authors
👤 Yacoubou Seidou
- GitHub: yacoubou-seidou
- Linkedin: yacoubou-seidou
- Facebook: yacoubou-seidou
👤 Mahamadou Nouridine
- GitHub: mahamadou-nouridine
- Linkedin: mahamadou-nouridine
- Twitter: Nouridine_Dino
🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
License
This project is MIT licensed.