useClipboard ​
Hook that manages a copy to clipboard
typescript
import { useClipboard } from '@siberiacancode/reactuse';
Usage ​
typescript
const { supported, value, copy } = useClipboard();
Demo ​
Api ​
Parameters
Name | Type | Default | Note |
---|---|---|---|
params.enabled? | boolean | false | Whether the copy to clipboard is enabled |