copy-to-clipboard
copy-to-clipboard copied to clipboard
This feature (document.execCommand) is no longer recommended. Will it be implemented using navigator.clipboard API?
trafficstars
This feature (document.execCommand) is no longer recommended. Will it be implemented using navigator.clipboard API?
You can use navigator.clipboard.writeText("text to copy") directly, no third-party package is needed.