Skip to content

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
  • autogrow (on by default) grows with the text where field-sizing is supported; elsewhere it stays at rows and scrolls.
  • counter with maxlength shows n / 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 description and error are for a label-less textarea.

Usage ​

ts
import { BlessTextarea } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
idstring—
rowsnumber3
autogrowbooleantruegrow with content (field-sizing: content)
invalidboolean—
disabledboolean—
readonlyboolean—
descriptionstring—
errorstring—
maxlengthnumber—
counterboolean—show n / maxlength
modelValuestring""

Events

NamePayloadDescription
update:modelValue[value: string]

Released under the MIT License. Character names and artwork belong to their owners.