0.1.2 • Published 7 years ago
@pinage404/copy-text v0.1.2
\<copy-text>
Element that copy text (or current URL by default) then notify with a paper-toast
- Install - Install with Yarn - Install with NPM - Simple install - Manual install - Install with Bower
- Usage - Simplest usage - Full usage
- License
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 # if you need to watch the documentation
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
0.1.2
7 years ago