Skip to content

Textarea

Resizable for entering multiple lines of text information.

Basic usage

vue
<script setup>
  import { ref } from 'vue'

  const str = ref('Hello world!')
</script>

<template>
  <m-textarea v-model="str"  />
</template>

Disabled

The disabled attribute accepts a boolean

vue
<template>
  <m-textarea v-model="str" :disabled="true" />
</template>

Readonly

The readonly attribute accepts a boolean

vue
<template>
  <m-textarea v-model="str" :readonly="true" />
</template>

API

PropertyDescriptionTypeDefault
v-modelBinding valuestring-
valueBinding valuestring-
placeholderPlaceholder textstring-
disabledDisabled state of input boxbooleanfalse
readonlyReadonly state of input boxbooleanfalse
maxlengthMaximum length of input boxnumber-
minlengthMinimum length of input boxnumber-

Events

Event NameDescriptionParameters
changeTriggered when the value changes(value: string)
focusTriggered when the input box gets focus(event: Event)
blurTriggered when the input box loses focus(event: Event)

Released under the MIT License.