Javascript touch friendly input spinner
- Pure javascript (no jQuery)
- CSS Framework Agnostic
- Using native HTMLInputElement.stepUp() and HTMLInputElement.stepDown() methods
- Lightweight (< 70 LOC)
Install with npm:
npm install @erwinstone/input-touchspin
Install from cdn:
<script src="https://unpkg.com/@erwinstone/input-touchspin@1.0.3/dist/input-touchspin.min.js"></script>
Demos and documentation: https://input-touchspin.vercel.app/