Textarea
stableA styled multi-line text input.
Basic usage
Examples
With character count
Combine with state to show a live character counter.
0/200
Textarea states
Textarea keeps native behavior while matching input focus, invalid and disabled styling.
Features
- Smooth focus ring.
- Wraps the native textarea.
Installation
bash
pnpm dlx structyl add textareaAPI Reference
Textarea
A styled multi-line text input. Forwards all native textarea props.
| Prop | Type | Default |
|---|---|---|
| rows | numberVisible number of text lines. | — |
| disabled | booleanDisable the textarea. | false |
| className | stringAdditional Tailwind classes, merged with the component defaults. | — |