npm i @bibhuticoder/copy-me
<template>
<copy-me :text="I'm copied"ß>
<button slot="handler"> Click Me </button>
</copy-me>
</template>
import CopyMe from "@bibhuticoder/copy-me";
export default {
name: "Your-Component",
components: {
CopyMe: 'copy-me'
}
}
Name | Type | Description |
---|---|---|
text* | String | Text to be copied |
notify | Boolean | Default: true |
successMessage | String | Default: "Copied" |
failMessage | String | Default: "Fail" |
toastCss | String | Default: "" |