# hostinger/3.0.78/vue-frontend/src/components/CopyField.vue

Hostinger Tools, version 3.0.78. 45 lines.

- Page: https://pluginprobe.com/plugins/hostinger/3.0.78/code/vue-frontend/src/components/CopyField.vue
- Raw: https://pluginprobe.com/plugins/hostinger/3.0.78/raw/vue-frontend/src/components/CopyField.vue
- Modified: 2025-09-09T07:18:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hostinger/3.0.78/code/vue-frontend/src/components/CopyField.vue#L10-L20`.

```vue
<script setup lang="ts">
import { defineProps, withDefaults } from "vue";

import Icon from "@/components/Icon/Icon.vue";
import { copyString } from "@/utils/helpers";

interface Props {
	link: string;
}

withDefaults(defineProps<Props>(), {});
</script>

<template>
  <div
    class="copy-field"
    @click="copyString(link)"
  >
    <span class="copy-field__link">{{ link }}</span>
    <Icon
      name="icon-content-copy"
      color="primary"
    />
  </div>
</template>

<style lang="scss" scoped>
.copy-field {
	display: flex;
	cursor: pointer;
	justify-content: space-between;
	padding: 12px 16px;
	border-radius: 8px;
	word-wrap: break-word;
	align-items: center;
	background: var(--gray-light);

	&__link {
		flex: 1 1 auto;
		color: var(--gray);
		overflow-wrap: anywhere;
	}
}
</style>

```
