Skip to content

TherapyChat/copy-to-clipboard

Repository files navigation

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.

About

Polymer web component wrapping clipboard.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages