Skip to content

Textarea

Multi-line text with optional auto-size, clear button, and character count.

Basic usage

Example

Auto-size

With count

API

Props

NameTypeDefaultDescription
valueTextareaValue""
labelstring""
placeholderstring""
rowsnumber3
disabledbooleanfalse
readonlybooleanfalse
borderedbooleantrue
allowClearbooleanfalse
maxLengthunionnull
showCountbooleanfalse
autoSizeAutoSizefalse
assistiveTextstring""
alertMessagestring""
stateDataEntryState"default"
sizeEpSizeundefined
clearLabelstring"Clear"

Events

EventPayloadDescription
update:value{"names":["TextareaValue"]}
change{"names":["TextareaValue"]}
clear
focus{"names":["FocusEvent"]}
blur{"names":["FocusEvent"]}

Slots

This component has no named slots.

Released under the MIT License. Built with VitePress.