use-copy
Copies the content in text format of a reference.
import { useCopy } from "@atomico/hooks/use-copy";
const copy:()=>void = useCopy(ref);
Where:
- 1.
ref
: Node reference to copy - 2.
copy
: Callback, executes the content copy event.
Last modified 1yr ago