<clipboard-copy> element
Copy element text content or input values to the clipboard.
Installation
$ npm install --save clipboard-copy-element
Usage
Copy pathsrc/index.js
Data sources
Attribute
Copy
Element content
Copysrc/index.js
Form input
Copy
Hyperlink href
Copy full URLLink text will not be copied
Events
After copying to the clipboard, a clipboard-copy
event is dispatched from
the <clipboard-copy>
element:
document
Browser support
Browsers without native custom element support require a polyfill.
- Chrome
- Firefox
- Safari
- Microsoft Edge
Development
npm install
npm test
License
Distributed under the MIT license. See LICENSE for details.