Textarea
Auto-growing textarea
Text longer than a line: a message, a note, a description. For one line use Input; for formatted text, Editor.
Basic
0 / 120
Required
autogrow(on by default) grows with the text wherefield-sizingis supported; elsewhere it stays atrowsand scrolls.counterwithmaxlengthshowsn / max. It is read out only when the text is near the limit, not on every keystroke.- In a form, wrap it in a Field; its own
descriptionanderrorare for a label-less textarea.
Usage
ts
import { BlessTextarea } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | — | |
rows | number | 3 | |
autogrow | boolean | true | grow with content (field-sizing: content) |
invalid | boolean | — | |
disabled | boolean | — | |
readonly | boolean | — | |
description | string | — | |
error | string | — | |
maxlength | number | — | |
counter | boolean | — | show n / maxlength |
modelValue | string | "" |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: string] |