Input 10
An inline-edit field with explicit edit, save, and cancel states designed for professional product interfaces.
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 10
Input 10 is an input component in the Input Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 11, 2026.
- input
- inline edit
- inputs
- editable
- metadata
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: role alert; aria-label.
- HTML elements used: button, input, svg.
- Keyboard keys handled: Escape, Enter.
- Includes a prefers-reduced-motion rule for its animation.
React + TypeScript + Tailwind CSS
3 files: Input10.jsx, Input10.types.ts, Input10.tailwind.css
- Configurable through 4 props: label, defaultValue, onSave, containerClassName.
- Uses React hooks: useEffect, useId, useRef, useState.
- ARIA in the markup: role alert; aria-label, aria-invalid, aria-describedby.
- HTML elements used: button, input, svg.
- Keyboard keys handled: Escape, Enter.
- Includes a prefers-reduced-motion rule for its animation.