- useClipboard(): {
copy: ((data) => Promise<void>);
paste: (() => Promise<undefined | string>);
}
-
Returns {
copy: ((data) => Promise<void>);
paste: (() => Promise<undefined | string>);
}
-
copy: ((data) => Promise<void>)
-
- (data): Promise<void>
-
Returns Promise<void>
-
paste: (() => Promise<undefined | string>)
-
- (): Promise<undefined | string>
-
Returns Promise<undefined | string>
A custom hook to copy and paste data using the clipboard.