blazor copy to clipboard
window.clipboardCopy = {
copyText: function (codeElement) {
navigator.clipboard.writeText(codeElement.textContent).then(function () {
alert("Copied to clipboard!");
})
.catch(function (error) {
alert(error);
});
}
}