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.
You can install the package via npm:
npm install pure_counter
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" />
Prop | Type | Description |
---|---|---|
start | number | The starting value |
end | number | The ending value |
duration | number | Duration in seconds |
className | string | CSS class name |
Prop | Type | Description |
---|---|---|
start | number | The starting value |
end | number | The ending value |
duration | number | Duration in seconds |
className | string | CSS class name |
👤 Yacoubou Seidou
- GitHub: yacoubou-seidou
- Linkedin: yacoubou-seidou
- Facebook: yacoubou-seidou
👤 Mahamadou Nouridine
- GitHub: mahamadou-nouridine
- Linkedin: mahamadou-nouridine
- Twitter: Nouridine_Dino
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
This project is MIT licensed.