Input 06
A multi-cell verification-code input with paste support, intelligent keyboard navigation, and mobile-friendly numeric entry.
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 06
Input 06 is an input component in the Input Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 15, 2026.
- input
- otp
- inputs
- verification
- pin
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 group, status; aria-labelledby, aria-label.
- HTML elements used: button, input, label.
- Keyboard keys handled: ArrowLeft, ArrowRight.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 380px.
React + TypeScript + Tailwind CSS
3 files: Input06.jsx, Input06.types.ts, Input06.tailwind.css
- Configurable through 9 props: label, length, value, defaultValue, onChange, onComplete, disabled, errorText, containerClassName.
- Uses React hooks: useId, useRef, useState, useEffect.
- ARIA in the markup: roles group, alert, status; aria-labelledby, aria-describedby, aria-invalid, aria-label.
- HTML elements used: button, input, label.
- Keyboard keys handled: ArrowLeft, ArrowRight.
- Includes a prefers-reduced-motion rule for its animation.