Textarea
A multi-line input with an optional character limit.
MarkdownExamples
With a limit
API
| Prop | Type | Default |
|---|---|---|
labelVisible label, linked to the control. | string | — |
hintHelp text under the control, announced as its description. | string | — |
error
| string | boolean | — |
maxLengthCharacter limit. Shows a live counter and flags values already over it. | number | — |
optionalAppends the | boolean | false |
disabledDisables the control. | boolean | false |
rowsVisible text lines. | number | 4 |
idId for the control; generated with | string | — |
modelValueThe value. | string | — |
| Event | Payload |
|---|---|
update:modelValue
| [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.