Skip to content

Text area

Multi-line text input control with control radius (--radius-lg) and custom error state styling.

// Plain markup
import { TextArea } from "@shavin/ui";

Default usage

Component Source
<TextArea className="w-72" placeholder="Write a note…" />

Invalid

Component Source
<TextArea className="w-72" placeholder="Required field" invalid defaultValue="bad value" />

Disabled

Component Source
<TextArea className="w-72" placeholder="Can't touch this" disabled />

Props

PropTypeDefaultDescription
invalidboolean | null"false"—
variant"outline" | "soft" | null"outline"outline (default): a 3:1 control border (WCAG 1.4.11), for forms on any background. soft: filled, no border, for dense tool panels where a visible label and the value or placeholder identify the field. Both show the 2px focus ring.
Configure Theme
Theme
Brand Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font