pure_counter

0.1.8 • Public • Published

pure_counter

Version License

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

👤 Mahamadou Nouridine

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

License

This project is MIT licensed.

Package Sidebar

Install

npm i pure_counter

Weekly Downloads

13

Version

0.1.8

License

MIT

Unpacked Size

17.7 kB

Total Files

16

Last publish

Collaborators

  • yacos
  • nouridine