UITextarea
Preview
Section titled “Preview”| Prop | Type | Default | Description |
|---|---|---|---|
value | string | "" | Current textarea value |
placeholder | string | "" | Placeholder text |
rows | number | 6 | Visible row count |
onInput | (value: string) => void | — | Called on every keystroke with the new value |
import { UITextarea } from "tango-api";
const [notes, setNotes] = useState("");<UITextarea value={notes} placeholder="Write something..." rows={4} onInput={setNotes} />