Skip to content

UseClipboardProps

@firecms/core


@firecms/core / UseClipboardProps

Defined in: hooks/useClipboard.tsx:5

optional copiedDuration: number

Defined in: hooks/useClipboard.tsx:31

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


optional disableClipboardAPI: boolean

Defined in: hooks/useClipboard.tsx:26

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


optional onError: (error) => void

Defined in: hooks/useClipboard.tsx:20

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

string

void


optional onSuccess: (text) => void

Defined in: hooks/useClipboard.tsx:12

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

string

void