UseCopyToClipboard
katanakit-js / useCopyToClipboard
Function: useCopyToClipboard()
Section titled “Function: useCopyToClipboard()”function useCopyToClipboard(text): Promise<boolean>;Defined in: core/services/utils.service.ts:548
Copies text to the clipboard (browser only).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
Returns
Section titled “Returns”Promise<boolean>
Example
Section titled “Example”const ok = await useCopyToClipboard("Hello, world!");