Input
v1.0.3Updated 27 Aug 2026Single-line text input for short values. Leading / trailing icons, prefix / suffix addons, clear button, password reveal, copy-to-clipboard, character counter, a lock / pen editability indicator, and validation states.
Preview
Live · 16 stories▸Why this is recommendedformtextfieldinput+7
The default, out-of-the-box Input.
- ✓Form fields
- ✓Search boxes
- ✓Filter inputs
- ✓Password fields
- ✓Search with clear button
- ✓Inputs with units (฿, %, etc.)
- ✓Fields that show a lock when read-only and a pen when editable
- ✓Read-only fields the user can unlock to edit
- Native types supported
- Disabled / read-only
- Inherits form sizing
- Leading + trailing icon slots
- Clearable (X button)
- Password reveal toggle
- Copy-to-clipboard button
- Character counter
- Validation states: idle / loading / valid / invalid
- Lock / pen editability indicator (locked prop) — trailing glyph shows a lock when read-only, a pen when editable; lock also sets the field readOnly
- Prefix / suffix text addons
- i18n: labels prop overrides every built-in string (copy toasts, password / clear / copy / lock / pen aria-labels); char-counter digits format via LocaleProvider
- ✕Multiline text (use Textarea)
- ✕Numeric stepper (compose with InputGroup)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
typeNative input type
—leadingLeading icon / addon
—trailingTrailing icon / addon
—clearableShow clear button when filled
—passwordPassword field with reveal toggle
—copyableShow copy-to-clipboard button
—showCountShow character counter
—lockedEditability status indicator: a trailing lock glyph when true (also sets the field readOnly), a pen glyph when false. Leave undefined for no indicator. Status readout only — the icon does not toggle editing on click.
—stateValidation state
—labelsOverride the built-in Pro-extension strings — copy toasts and password / clear / copy / lock / pen aria-labels (i18n). Merged over DEFAULT_INPUT_LABELS.
—