Components · Form & Input
A multi-line text input with configurable resize behaviour, size, and validation states.
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| placeholder | string | — | — | Placeholder text shown when the field is empty. |
| disabled | boolean | — | — | Disables the textarea. |
| invalid | boolean | — | — | Applies error styling to indicate a validation failure. |
| rows | number | — | — | Initial visible row count. |
| resize | 'none' | 'vertical' | 'horizontal' | 'both' | 'vertical' | — | Controls resize handle visibility. |
| size | 'sm' | 'md' | 'lg' | 'md' | — | Controls font size and padding. |
import { Textarea } from '@nexub/react';