Root Props
| Prop | Type | Default |
|---|---|---|
placeholder | string | — |
| Placeholder text shown when the textarea is empty. | ||
value | string | number | — |
| The current value of the textarea. Can be a string or number. | ||
size | TextAreaSize | 'md' |
| Visual size of the textarea. Controls padding, font size, and height presets. | ||
error | boolean | — |
| Displays the textarea in an error state. | ||
fullWidth | boolean | — |
| Makes the textarea expand to fill the full width of its container. | ||
ref | Ref<HTMLTextAreaElement> | — |
Ref forwarded to the native <textarea> element. Useful for focus control, measurement, or integrations. | ||
Also accepts all <textarea> attributes.
Child Parts
- None.
TextAreais a single exported control.
Types
TextAreaPropsTextAreaSize
State Model
- Controlled and uncontrolled behavior follow native
<textarea>rules. - Error state is visual and does not replace validation semantics.