Skip to main content
Version: 2.0.0

Interface: UseClipboardProps

Properties

copiedDuration

Optional copiedDuration: number

revert back the isCopied flag to false again if a value is set.

Defined in

packages/firecms/src/hooks/useClipboard.tsx:31


disableClipboardAPI

Optional disableClipboardAPI: boolean

Disables the new clipboard API navigator.clipboard even if it is supported.

Defined in

packages/firecms/src/hooks/useClipboard.tsx:26


onError

Optional onError: (error: string) => void

Type declaration

▸ (error): void

Triggers when the hook encounters an error. If passed hook won't throw an error.

Parameters
NameType
errorstring
Returns

void

Defined in

packages/firecms/src/hooks/useClipboard.tsx:20


onSuccess

Optional onSuccess: (text: string) => void

Type declaration

▸ (text): void

It's callback function that is called after the copy command is executed.

Parameters
NameType
textstring
Returns

void

Defined in

packages/firecms/src/hooks/useClipboard.tsx:12

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!