UNPKG

@coreui/react

Version:

UI Components Library for React.js

13 lines (12 loc) 347 B
/** * useClipboard Hook * * Provides functionality to copy text to the clipboard and track the copy status. * * @returns An object containing the copy function, copy status, and any error encountered. */ export declare const useClipboard: () => { copy: (text: string) => Promise<void>; isCopied: boolean; error: Error | null; };