Content
useClipboard
A hook that provides a function to copy text to the clipboard.
useClipboard
Usage
API
useClipboard
Returns a function to copy text to the clipboard and a boolean indicating whether the text has been copied.
Returns
Name | Type | Description |
---|---|---|
copy | (text: string) => void | A function to copy text to the clipboard. |
isCopied | boolean | A boolean indicating whether the text has been copied. |