- 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
Textarea
Multi-line text input component for forms
pnpm add @wandercom/design-system-web
import { Textarea } from '@wandercom/design-system-web/ui/textarea';
export function Example() {
return <Textarea placeholder="Enter your message" />;
}Loading example...
// Default size
<Textarea placeholder="Enter your message" />
// Small size
<Textarea size="sm" placeholder="Enter your message" />
// Disabled state
<Textarea placeholder="Enter your message" disabled />
// Invalid state
<Textarea
placeholder="Enter your message"
aria-invalid="true"
/><Textarea placeholder="Short textarea" rows={3} />Loading example...
// No resize (default)
<Textarea placeholder="Cannot be resized" resize="none" />
// Vertical resize only
<Textarea placeholder="Can be resized vertically" resize="vertical" />
// Horizontal resize only
<Textarea placeholder="Can be resized horizontally" resize="horizontal" />
// Both directions
<Textarea placeholder="Can be resized in both directions" resize="both" />size?:
'default' | 'sm'
Size variant of the textarea. Default uses text-base, sm uses text-body.
resize?:
'none' | 'vertical' | 'horizontal' | 'both'
Controls the resize behavior of the textarea. Defaults to none.
placeholder?:
string
Placeholder text displayed when textarea is empty.
rows?:
number
Number of visible text rows. Defaults to browser default.
disabled?:
boolean
Disables the textarea when true.
className?:
string
Additional CSS classes to apply.
ref?:
React.Ref<HTMLTextAreaElement>
Forward ref to the underlying textarea element.