mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-05 03:57:03 -04:00
17 lines
438 B
Vue
17 lines
438 B
Vue
<script setup lang="ts">
|
|
import { useClipboard } from '@vueuse/core';
|
|
|
|
const props = defineProps<{
|
|
link: string;
|
|
}>();
|
|
|
|
const { copy, copied } = useClipboard({ source: props.link });
|
|
</script>
|
|
|
|
<template>
|
|
<button type="button" :class="['btn', copied ? 'btn-success' : 'btn-outline-primary', 'm-1']" @click="copy()">
|
|
<Icon :v="copied ? 'clipboard-check' : 'clipboard'" />
|
|
<T>crud.copy</T>
|
|
</button>
|
|
</template>
|