We currently use ClipboardJS library to copy text to the clipboard, but this can now be done using the native Clipboard API - https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText