Skip to main content

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