Skip to main content
Version: 1.0.0

Interface: useClipboardReturnType

Properties

clipboard

clipboard: string

Current selected clipboard content.

Defined in

hooks/useClipboard.tsx:65


isCoppied

isCoppied: boolean

Indicates wheater the content was successfully copied or not.

Defined in

hooks/useClipboard.tsx:60


ref

ref: MutableRefObject<any>

Use ref to pull the text content from.

Defined in

hooks/useClipboard.tsx:45

Methods

clearClipboard

clearClipboard(): void

Clears the user clipboard.

Returns

void

Defined in

hooks/useClipboard.tsx:70


copy

copy(text?): void

Use it to perform the copy operation

Parameters

NameType
text?string

Returns

void

Defined in

hooks/useClipboard.tsx:50


cut

cut(): void

Use it to perform the cut operation

Returns

void

Defined in

hooks/useClipboard.tsx:55


isSupported

isSupported(): boolean

Check to see if the browser supports the new navigator.clipboard API.

Returns

boolean

Defined in

hooks/useClipboard.tsx:75