TextArea
uitemplate
TextArea - a multi-line text input field
Terminal
$termuijs render text-area
Installation
$ bunx termuijs add text-area
Copies the source into src/components/text-area/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { TextArea } from '@termuijs/ui'ts
new TextArea(style: Partial<Style> = {}, options: TextAreaOptions = {})API Reference
TextArea
| Prop | Type | Required | Description |
|---|---|---|---|
rows | number | optional | Number of visible rows (default: 4) |
placeholder | string | optional | — |
onChange | (value: string) => void | optional | — |
onSubmit | (value: string) => void | optional | — |