TextInput
Carbon-spec text input with built-in label, helper text, and validation states (error / warning / success / read-only / disabled).
primitives-textinput--defaultOpen all variants →
When to use
- Any single-line text field in a form. The default text-entry primitive.
- Use the
stateprop to wire validation feedback (error / warning / success).
When not to use
- Passwords with show/hide toggle → use `PasswordInput`.
- Multi-line input → use `TextArea`.
- Search with magnifier + clear → use `Search`.
- Migrating legacy
<Input>→ use `Input` shim then upgrade.