Playground
Size
Error
Disabled
Leading icon
Trailing icon
States
We'll never share your email.
Enter a valid email address.
Tab to the Default field above to see the keyboard-focus ring live.
Sizes
Icons
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Optional label above the field. |
| helperText | string | — | Optional supporting text below the field. |
| error | string | — | Error message; when set, overrides helperText and switches border/text to feedback-danger. |
| size | "sm" | "md" | "md" | Padding and type size. |
| leadingIcon | ReactNode | — | Decorative icon inside the field on the left; the field's own padding adjusts to make room. |
| trailingIcon | ReactNode | — | Decorative icon inside the field on the right. |
| disabled | boolean | false | Standard HTML disabled state. |
| ...rest | InputHTMLAttributes | — | value, onChange, placeholder, type, and any other native input prop. |
Usage Guidelines
When to use
- Use for a single line of free-text or numeric entry, always paired with a visible label.
When not to use
- Don't rely on placeholder as a substitute for label — placeholder text disappears once typing starts and fails accessibility.
- Don't use Input for multi-line content — it's a single-line field by design.