The TextArea component provides a multi-line text input field with support for labels, helper text, and validation states.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/raystack/apsara/llms.txt
Use this file to discover all available pages before exploring further.
Basic usage
Props
The label text displayed above the textarea.
Whether the textarea is required. When false, displays “(optional)” next to the label.
Tooltip text to display next to the label.
Helper text displayed below the textarea.
Whether the textarea is in an error state.
Whether the textarea is disabled.
Width of the textarea container.
The controlled value of the textarea.
Callback fired when the textarea value changes.
Placeholder text to display when the textarea is empty.
Additional CSS classes to apply to the textarea element.
Additional inline styles to apply to the textarea element.
With label and helper text
Required field
Optional field
With info tooltip
Error state
Disabled state
Controlled component
Custom width
Custom rows
Accessibility
- The TextArea component properly associates labels with the textarea element.
- Helper text and error messages are accessible to screen readers.
- The info tooltip icon supports keyboard navigation.
- The
requiredattribute is properly set for form validation.