Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

pure_counter

Yacoubou-seidou118MIT0.1.9

Pure increment and decrement functionality components

react, date picker, calendar, component, UI, input, form, date selection, date control, JavaScript, TypeScript, frontend, counting

readme

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.