Textarea

A multi-line text input component that extends the base Input component with textarea-specific functionality. It supports resizing, auto-resizing, and character limits.

Let me know what you think about vui

0/280

Props

NameDefaultType
resizeverticalboolean vertical horizontal
Controls the resize behavior of the textarea
cols-number
Modifies the width of the textarea in character count
rows5number
Modifies the height of the textarea in row cou
autoResizefalseboolean
Automatically adjusts the height based on content
labelstring
Label text for the textarea
hintstring
Helper text displayed below the textarea
limitnumber string
Maximum number of characters allowed
expandfalseboolean
Makes the textarea expand to full width
placeholderstring
Placeholder text when textarea is empty
requiredfalseboolean
Makes the textarea required
modelValue''string
Value of the textarea (for v-model)
readonlyfalseboolean
Makes the textarea readonly
focusfalseboolean
Focuses the textarea when mounted
errors[]string[]
Array of error messages to display
disabledfalseboolean
Disables the textarea

Events

NamePayloadDescription
update:modelValuestringEmitted when the textarea value changes

Slots

NameAcceptsDescription
beforeanyContent to be displayed before any of the textarea content
startanyContent to be displayed at the start of the textarea
endanyContent to be displayed at the end of the textarea
afteranyContent to be displayed after all the textarea content

Exposes

NameTypeDescription
focusmethodFocuses the textarea element