Input
Text input with built-in label, error message, and hint support. Handles common form patterns with consistent HUD styling.
Variants
Preview
This field is required
Use your assigned codename
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | - | Label text displayed above the input. |
| placeholder | string | - | Placeholder text shown when the input is empty. |
| error | string | - | Error message displayed below the input. |
| hint | string | - | Hint text displayed below the input. |
| disabled | boolean | false | Disables the input and applies muted styling. |
| className | string | - | Additional CSS classes. |
Accessibility
- Renders a semantic
<input>element with an associated<label> - The
labelprop automatically generates a linkedhtmlFor/idpair - Error messages are linked via
aria-describedbyand setaria-invalid="true" - Hint text is linked via
aria-describedbyfor screen reader context - Disabled state applies
aria-disabledalongside the nativedisabledattribute - Supports
refforwarding for DOM access