Textarea
A multi-line text input field built on Base UI’s Input primitive.Base UI Primitive
Built on@base-ui/react/input with render={<textarea />}
Import
Usage
Props
Control size. Affects padding.
s: 10px horizontal, 8px vertical paddingm: 12px horizontal, 10px vertical paddingl: 12px horizontal, 12px vertical padding
Visual style variant.
secondary: Solid backgroundtertiary: Glass-morphic with backdrop blur
Number of visible text rows.
Resize behavior.
none: Not resizablevertical: Vertically resizablehorizontal: Horizontally resizableboth: Both directions
Only show focus ring on keyboard navigation (not mouse clicks).
Disables the textarea and applies disabled styles.
Placeholder text shown when textarea is empty.
Controlled value.
Uncontrolled default value.
Callback fired when value changes.
Additional CSS classes for the container.
Explicit escape hatch for intentional structural overrides.