# copy

Vue directive to add a click-to-copy.

# Installation

Global install:

import Vue from 'vue';
import { copy } from 'vuetensils/src/directives';

Vue.directive('copy', copy);

Local install:

<script>
  import { copy } from 'vuetensils/src/directives';

  export default {
    directives: {
      copy,
    },
  };
</script>

# Usage

Note that you must pass a string inside the v-copy value.

Last Updated: 7/7/2020, 10:03:39 PM