Textarea
A multi-line field with vertical resize
Import
import { Textarea } from "@nyte-ai/ui/textarea";A native <textarea> in the frame of Input.
Usage
- It resizes vertically.
resize: "none"inxstyleturns that off.
Examples
<Textarea placeholder="System prompt" aria-label="System prompt" />Props
Takes every <textarea> prop plus:
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "raised" | "quiet" | "raised" | |
size | "md" | "lg" | "xl" | "md" | |
className, style, xstyle | see Theming |
Accessibility
Focus recolors the border. aria-invalid turns it red.