- Accordion
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Checkbox
- Combobox
- Container
- CurrencyInput
- DistributionSlider
- Drawer
- Dropdown
- Grid
- Heading
- Image
- Input
- InputGroup
- Label
- Logo
- MapPin
- Modal
- NativeSelect
- NumberInput
- OtpInput
- PhoneInput
- Popover
- Progress
- PropertyCalendar
- RadioGroup
- RadioGroupCards
- ResponsiveModal
- ScrollArea
- SearchBar
- SearchBarFallback
- SearchInput
- Select
- Separator
- Spinner
- Switch
- Tabs
- Text
- Textarea
- Toast
- Toggle
- ToggleGroup
- Tooltip
Input
Text input field component for forms with consistent styling and accessibility
pnpm add @wandercom/design-system-web
import { Input } from '@wandercom/design-system-web/ui/input';
export function Example() {
return <Input type="email" placeholder="Email" />;
}Loading example...
size?:
'default' | 'sm'
Size variant of the input. Defaults to default.
type?:
string
HTML input type (text, email, password, file, etc.). Defaults to text.
placeholder?:
string
Placeholder text displayed when input is empty.
disabled?:
boolean
Disables the input field when true.
className?:
string
Additional CSS classes to apply.
ref?:
React.Ref<HTMLInputElement>
Forward ref to the underlying input element.