use-copy

Copies the content in text format of a reference.

Module

import { useCopy } from "@atomico/hooks/use-copy";

Syntax

const copy:()=>void = useCopy(ref);

Where:

  1. ref : Node reference to copy

  2. copy: Callback, executes the content copy event.

Example

Last updated