PluginProbe
Hostinger Tools / trunk
Hostinger Tools vtrunk
3.0.78 3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 All 109 releases
hostinger / vue-frontend / src / components / CopyField.vue

CopyField.vue in Hostinger Tools trunk, at vue-frontend/src/components/CopyField.vue

45 lines 797 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <script setup lang="ts">
2 import { defineProps, withDefaults } from "vue";
3
4 import Icon from "@/components/Icon/Icon.vue";
5 import { copyString } from "@/utils/helpers";
6
7 interface Props {
8 link: string;
9 }
10
11 withDefaults(defineProps<Props>(), {});
12 </script>
13
14 <template>
15 <div
16 class="copy-field"
17 @click="copyString(link)"
18 >
19 <span class="copy-field__link">{{ link }}</span>
20 <Icon
21 name="icon-content-copy"
22 color="primary"
23 />
24 </div>
25 </template>
26
27 <style lang="scss" scoped>
28 .copy-field {
29 display: flex;
30 cursor: pointer;
31 justify-content: space-between;
32 padding: 12px 16px;
33 border-radius: 8px;
34 word-wrap: break-word;
35 align-items: center;
36 background: var(--gray-light);
37
38 &__link {
39 flex: 1 1 auto;
40 color: var(--gray);
41 overflow-wrap: anywhere;
42 }
43 }
44 </style>
45