@therapychat/copy-to-clipboard
v1.0.9
Published
Web Component to use clipboard.js
Downloads
12
Maintainers
Readme
<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.
- Close the repo:
git clone [email protected]:TherapyChat/copy-to-clipboard.git
- Install dependencies:
npm install
- Code!
- Test:
npm test
- Create a Pull Request
Contributors
License
This project is available under the Apache License 2.0
. See the LICENSE file for more info.