Skip to content

@ryanuo/utils / browser / copyToClipboard

Function: copyToClipboard() ​

ts
function copyToClipboard(text): Promise<boolean>;

Copy text to clipboard

Parameters ​

text ​

string

The text to be copied.

Returns ​

Promise<boolean>

A boolean indicating success or failure of the operation.