Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 649 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 649 Bytes

ClickToCopyElement

click-to-copy

Usage

  1. Include the click-copy.lib.js Library to your HTML Project:
<html>
  <head>
    <script src="click-copy.lib.min.js"></script>
    ...
  </head>
  ...
</html>
  1. 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>
  1. It will be automatically initialized by the click-copy.lib.js Library.