Forms
Input
A fundamental form component for capturing text data with support for labels, errors, and size variants.
Email
Sizes
Three size variants for different interface densities.
sm
md
lg
States
Inputs support error states and helper text.
ErrorThis field is required
Helper TextWe'll never share your email.
Props
| Prop | Type | Default |
|---|---|---|
label | string | — |
error | string | — |
helperText | string | — |
size | "sm" | "md" | "lg" | "md" |
Usage
import { Input } from '@/components/ui/input';
// Basic input
<Input placeholder="Enter name" />
// With label and error
<Input
label="Email"
error="Invalid email address"
/>