LiftDesign System
Beta
한국어 Get started
  1. Components
  2. Product
  3. Textarea

Components / Product

Textarea — Implementation

Multi-line text input

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 5382f78c963b…
Source language
KO·EN · not translated

Supported environment

The Lift 1.2.3 reference implementation is a React 18 function component with inline styles referencing Product tokens (hsl(var(--*))), so styles.product.css must be loaded. The mapping to an npm package could not be verified in this repository.

API

Copied from TextareaProps in components/_types.d.ts.

proptypedefaultdoc
rowsnumber4
invalidbooleanfalse
disabledbooleanfalse
autoGrowbooleanfalse
maxLengthnumber—
showCountbooleanfalse
valuestring—
defaultValuestring—
onChange(e: any) => void—
placeholderstring—
styleReact.CSSProperties—

Other props pass through from Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size">.

Code

One import line plus the example code from the usage note.

jsx · import
import { Textarea } from "./components/forms/Textarea.jsx";
jsx · Textarea.prompt.md
<Textarea autoGrow placeholder="시스템 프롬프트" maxLength={2000} showCount />
<Textarea invalid rows={3} defaultValue="잘못된 JSON" />

Token bindings

Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.

--background, --destructive, --destructive-text, --disabled, --disabled-border, --disabled-foreground, --duration-fast, --focus-ring-width, --font-sans, --foreground, --input, --input-active, --input-focus-ring-width, --input-hover, --muted-foreground, --ring, --text-c1

Source