ACTIONS & SURFACES
Input
Single-line text field. Native <input> with the Memphis 2-px border and focus shadow. Pairs with Label for accessibility.
Import
Basic usage
Invalid state
Disabled
API
Input props
| Prop | Type | Default | Description |
|---|---|---|---|
| invalid | boolean | false | Marks the input as invalid (sets aria-invalid + applies the destructive shadow). |
| disabled | boolean | false | Disables the input and applies the muted background. |
| ...rest | InputHTMLAttributes<HTMLInputElement> | — | All native input attributes are forwarded. |
Accessibility
- Always associate a
Labelvia matchinghtmlFor/id— placeholders are not labels. - Use
invalidtogether witharia-describedbypointing at an error message for screen readers.