<copy-text>
Element that copy text (or current URL by default) then notify with a paper-toast
Install
Install with Yarn
Using Yarn
$ yarn add copy-text
Install with NPM
Simple install
$ npm install copy-text
Manual install
First, make sure you have Bower and Polymer CLI installed
$ npm install copy-text --no-optional
Install with Bower
First, make sure you have Bower and Polymer CLI installed
$ bower install copy-text --save
$ npm run-script analyze
Usage
Simplest usage
<copy-text></copy-text>
Full usage
<copy-text
text="This is not an URL"
message-on-success="Text copied with success"
message-on-error="Oops! Something goes wrong while copying"
>
<button type="button">Click to copy</button>
</copy-text>
License
MIT Licence