Input 09
A compact quantity stepper combining typed numeric entry with accessible increment and decrement controls.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
Typography: Inter, with a system sans-serif fallback.
About Input 09
Input 09 is an input component in the Input Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 12, 2026.
- input
- quantity
- inputs
- stepper
- numeric
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- ARIA in the markup: roles spinbutton, status; aria-label, aria-valuenow, aria-valuemin, aria-valuemax.
- HTML elements used: button, input, label.
- Includes a prefers-reduced-motion rule for its animation.
React + TypeScript + Tailwind CSS
3 files: Input09.jsx, Input09.types.ts, Input09.tailwind.css
- Configurable through 10 props: label, min, max, step, value, defaultValue, onValueChange, disabled, containerClassName, id.
- Uses React hooks: useId, useState.
- ARIA in the markup: roles spinbutton, status; aria-label, aria-valuenow, aria-valuemin, aria-valuemax, aria-describedby.
- HTML elements used: button, input, label.