@finsweet/attributes-copyclip

1.7.0 • Public • Published

copyclip Attribute

Users can set any element to copy a string value to the clipboard when clicking on it. The script can be set by adding attributes to individual elements or by setting global attributes to the <script> tag that will affect all elements.

CDN Import

<!-- [Attributes by Finsweet] CMS Copy to Clipboard -->
<script defer src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-copyclip@1/copyclip.js"></script>

Package Sidebar

Install

npm i @finsweet/attributes-copyclip

Weekly Downloads

6

Version

1.7.0

License

none

Unpacked Size

30.1 kB

Total Files

6

Last publish

Collaborators

  • erikmejias
  • alexiglesias