Input
Form input field with validation states and accessibility features.
Examples
Input Types
Sizes
States
API Reference
Prop | Type | Default | Description |
---|---|---|---|
type | 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'text' | The type of input field. |
placeholder | string | undefined | Placeholder text displayed when the input is empty. |
disabled | boolean | false | When true, prevents the user from interacting with the input. |
error | boolean | false | When true, applies error styling to the input. |
size | 'sm' | 'md' | 'lg' | 'md' | The size of the input field. |