mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 08:03:34 +09:00
845 B
845 B
state
| state | ||||
|---|---|---|---|---|
|
Disabled
A VTextarea can be shown in a disabled state. For that, you need to wrap it
inside a <VControl /> component. Simply add the disabled attribute
to the target textarea element.
<script setup lang="ts">
const textarea = ref('')
const disabled = ref(true)
</script>
<template>
<VField>
<VControl>
<VTextarea
v-model="textarea"
rows="4"
placeholder="A longer message..."
:disabled="disabled"
/>
</VControl>
</VField>
</template>