@pinage404/copy-text

0.1.2 • Public • Published

<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

Package Sidebar

Install

npm i @pinage404/copy-text

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

1.45 MB

Total Files

427

Last publish

Collaborators

  • pinage404