useClipboard
Provides a function to copy text to the clipboard effortlessly.
useClipboard
Installation
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. |