PluginProbe
Hostinger Tools / 3.0.34
Hostinger Tools v3.0.34
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 2.0.4 All 108 releases
hostinger / vue-frontend / src / components / CopyField.vue

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

38 lines 786 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 import { copyString } from "@/utils/helpers";
4 import Icon from "@/components/Icon/Icon.vue";
5
6 interface Props {
7 link: string;
8 }
9
10 withDefaults(defineProps<Props>(), {});
11 </script>
12
13 <template>
14 <div class="copy-field" @click="copyString(link)">
15 <span class="copy-field__link">{{ link }}</span>
16 <Icon name="icon-content-copy" color="primary" />
17 </div>
18 </template>
19
20 <style lang="scss" scoped>
21 .copy-field {
22 display: flex;
23 cursor: pointer;
24 justify-content: space-between;
25 padding: 12px 16px;
26 border-radius: 8px;
27 word-wrap: break-word;
28 align-items: center;
29 background: var(--gray-light);
30
31 &__link {
32 flex: 1 1 auto;
33 color: var(--gray);
34 overflow-wrap: anywhere;
35 }
36 }
37 </style>
38