Usage
import { Textarea } from "@desk/ui/components/textarea";Best practices
Unlike
Input,Textareadoes not inherit an ancestorField's invalid state — passhasErrorexplicitly to show the error styling.It auto-grows with content (
field-sizing-content); setrowsfor an initial height rather than pinning height via CSS.Associate a
Label(viaField/htmlFor) — a placeholder is not an accessible name.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| hasError | boolean | Show error styling | |
| testId | string |