Forms/Textarea
Textarea
A multi-line text input with error state, resize control, and consistent styling that integrates with SmartForm.
import { Textarea } from "@animui/ui"Basic
Error state
Bio must be at least 20 characters.
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Label rendered above the textarea. |
placeholder | string | — | Placeholder text shown when empty. |
value | string | — | Controlled value. |
onChange | React.ChangeEventHandler | — | Change handler. |
rows | number | 3 | Number of visible text rows. |
disabled | boolean | false | Prevents interaction. |
error | string | — | Error message shown below the textarea. |
hint | string | — | Helper text shown below the textarea in neutral styling. |
maxLength | number | — | Maximum character count. Shows a character counter when set. |
autoResize | boolean | false | When true, the textarea grows vertically as the user types. |
className | string | — | Additional classes for the textarea element. |