Textarea
Displays a form textarea for multi-line text input.
Installation
import { Textarea } from "@sourceful-energy/ui"Usage
Examples
With Label
With Default Value
Disabled
With Character Limit
Max 200 characters
With Helper Text
Notes are only visible to you.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| placeholder | string | - | Placeholder text displayed when empty. |
| disabled | boolean | false | Whether the textarea is disabled. |
| rows | number | - | Number of visible text lines. |
| className | string | - | Additional CSS classes. |
Accessibility
- Uses native
<textarea>element - Always pair with a Label component for accessibility
- Supports all standard textarea attributes
- Focus ring visible for keyboard users