- Include the click-copy.lib.js Library to your HTML Project:
<html>
<head>
<script src="click-copy.lib.min.js"></script>
...
</head>
...
</html>
- Add the custom element tag to your HTML document:
<click-copy hint-text="This text will be shown as a copied confirmation. It's optional.">
Your text which should be copied to the clipboard
</click-copy>
- It will be automatically initialized by the click-copy.lib.js Library.