← Components/primitives

TextInput

Carbon-spec text input with built-in label, helper text, and validation states (error / warning / success / read-only / disabled).

primitivesstablea11y: untested3/3 coverageEdit on GitHub ↗
primitives-textinput--defaultOpen all variants →

When to use

  • Any single-line text field in a form. The default text-entry primitive.
  • Use the state prop to wire validation feedback (error / warning / success).

When not to use