Input
Text field with label, validation, and helper or error text.
Live preview
Required
Controlled
tsx
API
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "sm" | "md" | "md" | Control density. |
| state | "default" | "error" | "success" | "default" | Border and focus ring reflect validation. |
| label | string | — | Visible label wired to the control. |
| errorText | string | — | Shown when validation fails. |
| className | string | — | Additional class names merged with component styles. |
Accessibility
Label uses Radix Label; errors should be programmatically associated.