Skip to Content
Puzzle

Text Area Input

Enter multiline text with automatic sizing.

Import

import { TextAreaInput } from "@puzzle-ui/ui";

Automatic and manual resizing

rows sets the minimum visible height. Automatic sizing follows the content; disable it and enable resizable for a manually resizable textarea.

390 × 450

API

PropTypeDefaultDescription
rowsnumber3Minimum row count.
autoSizebooleantrueExpands to fit content.
resizablebooleanfalseEnables vertical manual resizing.
value, defaultValueNative textarea value-Controlled or initial text.
onChangeChangeEventHandler<HTMLTextAreaElement>-Native change event.

Standard textarea attributes, className, and style target the textarea. Provide a visible label, and use maxLength when input must be bounded.

;