Skip to Content

Textarea

Multi-line text. Accepts all native <textarea> attributes plus the props below. autoResize grows the field with its content; showCount pairs with maxLength.

0/120
import { Textarea } from '@gg-software/ui'; <Textarea placeholder="Plain textarea" rows={3} /> <Textarea placeholder="With counter…" showCount maxLength={120} rows={3} /> <Textarea placeholder="Grows with content" autoResize />

Props

PropTypeDefaultDescription
childrenReactNodecontent rendered inside the component
size"sm" | "md" | "lg"md
status"warning" | "error"
autoResizebooleanfalsegrow the textarea to fit its content instead of scrolling
showCountbooleanfalseshow a character counter (pairs with `maxLength`)

* required · generated from packages/ui/src/input/Textarea/Textarea.tsx