copy
Vue directive to add a click-to-copy.
Usage
<template> <div> <p>Click this button then paste somewhere</p> <button v-copy="'Clipboard says what?'"> Click to copy </button> </div> </template>
Click this button then paste somewhere
Note that you must pass a string inside the v-copy
value.