Stepper.js
Themeable stepper control buttons that sits on top of a native input[type="number"] element to preserve all browser specific UX enhancements that the input[type=number] provides.
Setting options is as simple as using the native step, min, max attributes.
Demo
Usage
+ -
Options
All options can be added inline as attributes on the element. See the example above.
step: "1" // Amount to increment on each step. Also accepts decimals.min: "1000" // Min amountmax: "10" // Max amountdebounce: 400 // Time in milliseconds to debounce the change event
Install
- yarn:
yarn add stepper.js
- npm:
npm install --save stepper.js