@therapychat/copy-to-clipboard

1.0.9 • Public • Published

Build status Published on webcomponents.org js-standard-style

<copy-to-clipboard>

Web Component to use clipboard.js

Example of use:

<copy-to-clipboard
  id="copyToClipboard"
  clipboard-value-to-copy="[[value]]"
  clipboard-value-copied="{{copiedValue}}"
  clipboard-trigger-id="copyButton"
></copy-to-clipboard>
<paper-input
  label="Value to Copy"
  value="{{value}}"
></paper-input>
<paper-input
  label="Copied Value"
  value="[[copiedValue]]"
  disabled
></paper-input>
<paper-button id="copyButton">COPY</paper-button>

Changelog

See CHANGELOG file.

Contributing

Please read CONTRIBUTING file to follow good practices.

You will need NodeJS.

  1. Close the repo: git clone git@github.com:TherapyChat/copy-to-clipboard.git
  2. Install dependencies: npm install
  3. Code!
  4. Test: npm test
  5. Create a Pull Request

Contributors

License

This project is available under the Apache License 2.0. See the LICENSE file for more info.

Package Sidebar

Install

npm i @therapychat/copy-to-clipboard

Weekly Downloads

0

Version

1.0.9

License

Apache-2.0

Unpacked Size

54.7 kB

Total Files

18

Last publish

Collaborators

  • albertofdzm