Sponsor

useClipboard

useClipboard is a custom hook to handle copying content to clipboard.

Return value#

The useClipboard hook returns an object with the following fields:

NameTypeDefaultDescription
valuestringThe copied value.
onCopyfunctionFunction to copy content.
hasCopiedbooleanfalseIf true, the content has been copied to clipboard .

Import#

Usage#

Paste here
Editable Example

Proudly made in 🇳🇬

Released under the MIT License.

Copyright © 2020 Segun Adebayo