Textarea
The Textarea component provides a multi-line text input field with support for character counting, validation feedback, and auto-grow functionality.Props
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | - | Field name for form state management |
label | string | - | Textarea label |
placeholder | string | "Enter your message..." | Placeholder text |
value | string | "" | Initial value |
rows | number | 4 | Number of visible rows |
required | boolean | false | Whether field is required |
disabled | boolean | false | Disabled state |
submitLabel | string | "Submit" | Submit button label |
showSubmit | boolean | true | Whether to show submit button |
error | string | - | Error message to display |
helperText | string | - | Helper text below textarea |
maxLength | number | - | Maximum character length |
showCount | boolean | false | Show character count |
radius | string | number | 12 | Border radius: sm, md, lg, xl, or number |
autoGrow | boolean | false | Auto-grow with content |
maxRows | number | 8 | Maximum rows when autoGrow is enabled |

