Introduce
Copy incoming values
Example
Value to be copied:You are about to copy these values
Code
<script setup lang="ts">
import { ref } from 'vue'
const value = ref('You are about to copy these values')
</script>
<template>
<button v-copy="value">click me to copy</button>
<button
@click="
() => {
value = 'Changed'
}
"
>
change the value to be copied
</button>
</template>