Skip to main content

Interface: useClipboardReturnType

Properties

clearClipboard

โ€ข clearClipboard: () => void

Clears the user clipboard.

Type declaration

โ–ธ (): void

Returns

void

Defined in

hooks/useClipboard.tsx:65


clipboard

โ€ข clipboard: string

Current selected clipboard content.

Defined in

hooks/useClipboard.tsx:60


copy

โ€ข copy: (text?: string) => void

Use it to perform the copy operation

Type declaration

โ–ธ (text?): void

Parameters
NameType
text?string
Returns

void

Defined in

hooks/useClipboard.tsx:45


cut

โ€ข cut: () => void

Use it to perform the cut operation

Type declaration

โ–ธ (): void

Returns

void

Defined in

hooks/useClipboard.tsx:50


isCoppied

โ€ข isCoppied: boolean

Indicates wheater the content was successfully copied or not.

Defined in

hooks/useClipboard.tsx:55


isSupported

โ€ข isSupported: () => boolean

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

Type declaration

โ–ธ (): boolean

Returns

boolean

Defined in

hooks/useClipboard.tsx:70


ref

โ€ข ref: MutableRefObject<any>

Use ref to pull the text content from.

Defined in

hooks/useClipboard.tsx:40