Component
Textarea
Collect longer responses with native form behavior, clear focus treatment, and controlled resize options.
Interactive preview
Usage
Import the component entry and start with its smallest complete example.
Import
import { Textarea } from "@chitrank2050/monoline-ui/textarea"Basic usage
<Textarea id="summary" placeholder="What changed?" rows={5} />Usage guidance
Choose the component for its interaction model and semantics before customizing its appearance.
Textarea collects prose, notes, messages, or any value that reasonably needs more than one line.
The value is short and predictable, needs rich-text editing, or should be chosen from predefined options.
Textarea keeps native semantics. Pair it with Label, expose invalid state with aria-invalid, and associate descriptions and errors through aria-describedby.
This component can render without adding a Monoline client boundary when its children and props are serializable.
API reference
Props, slots, and callbacks available on this component.
Design tokens
Theme variables this component reads for color, spacing, and motion.
Implementation
The source used by the example above, including any state it needs.
<Textarea id="summary" placeholder="What changed?" rows={5} />Related documentation
Compare related components or review the package and theme setup.