Skip to content
0

katanakit-js / useCopyToClipboard

Function: useCopyToClipboard() ​

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

Defined in: src/core/services/utils.service.ts:548

Copies text to the clipboard (browser only).

Parameters ​

ParameterType
textstring

Returns ​

Promise<boolean>

Example ​

ts
const ok = await useCopyToClipboard("Hello, world!");

Released under the MIT License.