0.1.2 • Published 7 years ago

@pinage404/copy-text v0.1.2

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
7 years ago

\<copy-text>

Pipeline status Published on NPM MIT License

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 # 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

MIT Licence