TextArea
Native multiline field with automatic ARIA composition and an optional counter. Default shell height is 96px, independent of validation messages. Manual vertical resize or opt-in autoResize is handled internally; ref/className/style belong to textarea.
Использование
0 from 1024
Описание поля
Валидация
9 from 1024
9 from 1024
9 from 1024
resize
9 from 1024
9 from 1024
API
| Проп | Тип | По умолчанию | Описание |
|---|---|---|---|
label | ReactNode | — | — |
description | ReactNode | — | — |
validationMessage | ReactNode | — | — |
validationStatus | "default" | "success" | "error" | default | — |
counter | ReactNode | ((context: TextAreaCounterContext) => ReactNode) | — | Undefined: automatic counter when maxLength is provided. Null hides it. |
resize | "vertical" | "none" | vertical | Manual vertical resizing; disabled while autoResize is enabled. |
autoResize | boolean | | Grow/shrink with content, bounded by minRows/maxRows. |
minRows | number | — | Minimum text rows in autoResize mode; defaults to rows or 3. |
maxRows | number | 8 | Maximum text rows in autoResize mode, never less than minRows. |
Last updated on