Back to Textarea
View full API on Textarea
Textarea
Sizes & help text
Default and large textarea with helper text.
Markdown is supported.
API
| Prop | Type | Default | Description |
|---|---|---|---|
| label | React.ReactNode | — | Field label. |
| helpText | React.ReactNode | — | Supplementary help text shown when there's no error. |
| error | React.ReactNode | — | Error text; sets `aria-invalid` and destructive styling. |
| size | "sm" | "md" | "lg" | md | Typography and padding scale. |
| value / defaultValue | string | — | Controlled / uncontrolled value. |
| onValueChange | (value: string) => void | — | Convenience change handler. |
| disabled | boolean | — | Native disabled state. |
| rows | number | — | Native rows attribute. |