humanonlyweb/ui

Textarea

A multi-line input with an optional character limit.

Markdown

Examples

With a limit

28 of 80 characters
Copy code

API

PropTypeDefault
label

Visible label, linked to the control.

string—
hint

Help text under the control, announced as its description.

string—
error

true marks the control invalid; a string also shows it as the message, replacing the hint.

string | boolean—
maxLength

Character limit. Shows a live counter and flags values already over it.

number—
optional

Appends the optional translation to the label.

booleanfalse
disabled

Disables the control.

booleanfalse
rows

Visible text lines.

number4
id

Id for the control; generated with useId() when omitted.

string—
modelValue

The value.

string—
EventPayload
update:modelValue

v-model:modelValue update.

[value: string | undefined]

Styling

Parts
fieldfield-labelfield-optionaltextareafield-footerfield-countfield-message
States
data-field-errordata-field-count-exceededdata-field-tone

Accessibility

  • Values over the limit are flagged, not truncated.