vael-ui v0.3.10

Forms & Inputs

Textarea

A multi-line text field that can auto-grow with its content.

Install

import { Textarea } from 'vael-ui'

Playground

import { Textarea } from 'vael-ui'

<Textarea size="md" :disabled="false" :readonly="false" :invalid="false" placeholder="" :rows="3" :autoGrow="false" :maxRows="0">Textarea</Textarea>

Props

NameTypeDefaultDescription
size"md" | "sm" | "lg""md"
disabledboolean | undefinedfalse
readonlyboolean | undefinedfalse
invalidboolean | undefinedfalseStandalone override; ORed with the nearest Field's `error` state.
placeholderstring | undefined
rowsnumber | undefined3Native `rows` attribute — also the auto-grow minimum.
autoGrowboolean | undefinedfalseEnable auto-grow behavior.
maxRowsnumber | undefinedOnly meaningful with `autoGrow`; omitted means no cap.
uiPartial<{ root: UiPartValue; textarea: UiPartValue; start: UiPartValue; end: UiPartValue; bottomStart: UiPartValue; bottomEnd: UiPartValue; }> | undefined
modelValuestring | undefined""

Slots

NameTypeDescription
startanyInline leading content (centered on the resting height).
endany
bottom-startanyBottom-left of the action strip (attachment button, …).
bottom-endanyBottom-right of the action strip (char counter, send button, …).

Events

NameTypeDescription
update:modelValue[value: string]

Exposed

NameTypeDescription
elHTMLElement | null
textareaElHTMLTextAreaElement | null