Input
Last updated: October 14, 2026
Text input matching the Field control surface, powered by Base UI Input. Works standalone or inside Field.
Installation
npx smoothui-cli add inputFeatures
- Same surface as
FieldControl:h-9,border-input, 3px focus ring - Works standalone, or inside
Fieldfor label, description, and error wiring - Supports
type,disabled, andaria-invalidstyling - Controlled (
value,onValueChange) or uncontrolled (defaultValue)
Input is Base UI only. Radix Primitives has no Input, so there is no Radix twin; the same file ships for every style.
States
Features
Search, disabled, and invalid inputs on their own. Always give a standalone input an aria-label or a visible <label>.
In Field
Inside Field, the label, description, and error are associated automatically (for/id, aria-describedby, aria-invalid).
Accessibility
ARIA Attributes
| Attribute | Element | Purpose |
|---|---|---|
aria-invalid | Input | Marks the input invalid and applies destructive styling |
aria-describedby | Input | Links description and error text when used in Field |
disabled | Input | Disables interaction and dims the control |
Props
Powered by
© 2026 SmoothUI. Built by Eduardo Calvo.