@finsweet/attributes-copyclip
Version:
Set any element to copy a string value to the clipboard when clicking on it.
11 lines (7 loc) • 449 B
Markdown
# `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
```html
<!-- [Attributes by Finsweet] CMS Copy to Clipboard -->
<script defer src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-copyclip@1/copyclip.js"></script>
```