Use Field to compose a label, helper text, and validation message around this control.
Usage
Disabled
With label
With helper text
Your message will be copied to the support team.
With button
Props
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | - | Placeholder text |
value | string | - | Controlled value |
defaultValue | string | - | Default value for uncontrolled usage |
onChange | (e: React.ChangeEvent<HTMLTextAreaElement>) => void | - | Callback when the value changes |
disabled | boolean | false | Whether the textarea is disabled |
readOnly | boolean | false | Whether the textarea is read-only |
error | boolean | { message: string } | false | Error state or error message |
id | string | - | HTML id attribute for label association |
rows | number | - | Number of visible text lines |
className | string | - | Additional CSS classes to apply |