Skip to main content
Version: 3.0.0-beta

Interface: UseClipboardProps

Properties​

copiedDuration?​

optional copiedDuration: number

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

Defined in​

packages/firecms_core/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_core/src/hooks/useClipboard.tsx:26


onError()?​

optional onError: (error) => void

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

Parameters​

• error: string

Returns​

void

Defined in​

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


onSuccess()?​

optional onSuccess: (text) => void

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

Parameters​

• text: string

Returns​

void

Defined in​

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

Sign up to our newsletter to get the latest news and updates. No spam!