ClipX.js: Lightweight Clipboard Power
ClipX.js is an ultra-light JavaScript library that simplifies clipboard tasks and enriches user feedback. It offers straightforward copy, cut, and paste capabilities, and built-in toast notifications that you can easily customize, providing a quick and efficient way to handle clipboard and notification needs. ——— The Smarter Clipboard Solution.
Notable Changes
- Add SVG icons to toast notifications for success and error messages
- Also We can add custom icon using html
E.g. :
<button aria-label="email copy" data-clipx-text="[email protected]"
data-clipx-msg="<i class='ri-check-double-fill text-2xl text-green-600'></i> Email Copied." data-clipx-toast="" title="Copy Email">
<i class="ri-file-copy-line text-2xl"></i>
</button>Also we can add SVG in message