useClipboard
useClipboard
is a custom hook to handle copying content to clipboard.
The useClipboard hook returns an object with the following fields:
Name | Type | Default | Description |
---|---|---|---|
value | string | The copied value | |
onCopy | function | Action to copy content | |
hasCopied | boolean | false | True if the content has been copied to clipboard. |
import { useClipboard } from 'minerva-ui';