# Upstage Design System — Textarea (product)
- context: product · group: forms
- source revision: lift-1.2.3 (Lift 1.2.3, zip sha256 8d5d9377c2b4…)
- status: content source-derived · availability implemented · verification static-only
- human docs: /en/components/product/textarea/ · machine doc: /agent/components/product/textarea.md
## Required references (read these)
- /components/forms/Textarea.jsx — implementation · sha256 5382f78c963b…
- /components/_types.d.ts — api · key TextareaProps
- /components/forms/Textarea.prompt.md — usage-note · sha256 197f077c5bf2…
- /kit/rules/a11y-contract.json — a11y · key Textarea
## API (components/_types.d.ts TextareaProps)
- rows?: number (default 4)
- invalid?: boolean (default false)
- disabled?: boolean (default false)
- autoGrow?: boolean (default false)
- maxLength?: number
- showCount?: boolean (default false)
- value?: string
- defaultValue?: string
- onChange?: (e: any) => void
- placeholder?: string
- style?: React.CSSProperties
- extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> (other props pass through)
## Accessibility contract
- keys: -
- aria: aria-invalid, aria-describedby(counter)
- notes: 카운터는 aria-live=polite
## Unverified
- Browser behaviour is not verified here (static source check only).
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.
| prop | type | default | doc |
|---|---|---|---|
rows | number | 4 | |
invalid | boolean | false | |
disabled | boolean | false | |
autoGrow | boolean | false | |
maxLength | number | — | |
showCount | boolean | false | |
value | string | — | |
defaultValue | string | — | |
onChange | (e: any) => void | — | |
placeholder | string | — | |
style | React.CSSProperties | — |
Other props pass through from Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size">.
Code
One import line plus the example code from the usage note.
import { Textarea } from "./components/forms/Textarea.jsx";<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
components/forms/Textarea.jsximplementation · sha256 5382f78c963b…components/_types.d.tsapi · TextareaPropscomponents/forms/Textarea.prompt.mdusage-note · sha256 197f077c5bf2…kit/rules/a11y-contract.jsona11y · Textarea