Skip to content

Data Input

TextAreaField

Multi-line text input with label and validation.

import { TextAreaField } from '@var-ui/react';

TextAreaField

Multi-line text input with label and validation.

Examples

Default

Demo.tsxTSX
import { TextAreaField } from '@var-ui/react';

<TextAreaField label="Notes" placeholder="Add a note…" />

Sizes

size (sm, md, lg) scales the type and inset to match TextField; the minimum height follows the control height. It falls back to the surrounding control size (InputGroup, Toolbar, Select.Root), then md.

Autosize

autosize grows the field with its content (CSS field-sizing: content) between minRows (default 2) and maxRows (no cap by default). Past maxRows it scrolls. Browsers without field-sizing keep a fixed height and scroll.

TSX
<TextAreaField label="Message" autosize minRows={2} maxRows={8} />

Props

Accessibility

Built on React Aria Components where applicable.