component Textarea { props { @event input = function @event change = function @event focus = function @event blur = function @event invalid = function size = "default" color = "primary" id = "" name = "" label = "Textarea" hiddenLabel = false placeholder = "" value = "" variant = "normal" icon = "" iconPosition = "start" helperText = "" cornerHint = "" error = "" inline = false rows = 5 resize = "vertical" readonly = false disabled = false required = false minlength = "" maxlength = "" class = "" } functions { function emitField(nameEvent, sourceEvent) { sourceEvent.stopPropagation() $emit(nameEvent, { value: sourceEvent.currentTarget.value, name: name, sourceEvent: sourceEvent }) } function handleInvalid(sourceEvent) { $emit("invalid", { value: sourceEvent.currentTarget.value, name: name, message: sourceEvent.currentTarget.validationMessage, sourceEvent: sourceEvent }) } } view {
{#if cornerHint}{cornerHint}{/if}
{#if icon}{/if} {#if variant === "floating"}{label}{/if}
{#if helperText}{helperText}{/if} {error}
} }