Function: copyToClipboard()
Source: 1.4.1 · 8df5c9bb3c47
ts
function copyToClipboard(text): Promise<boolean>;Defined in: packages/valaxy/client/utils/clipboard.ts:5
Copy text to the system clipboard using the async Clipboard API with a DOM execCommand('copy') fallback for restricted contexts.
Parameters
text
string
Returns
Promise<boolean>