UNPKG

react-hooks-bank

Version:

A collection of **powerful, reusable custom React hooks** for complex, non-trivial interactions that go beyond React’s native features.

14 lines 465 B
/** * useCopyToClipboard * * A custom hook to copy text to the clipboard and track copy status. * * @returns {[copy: (text: string) => Promise<boolean>, isCopied: boolean]} * - copy: Function to invoke with the text to copy. * - isCopied: Boolean flag that resets automatically after a short delay. */ export declare function useCopyToClipboard(): [ (text: string) => Promise<boolean>, boolean ]; //# sourceMappingURL=useCopyToClipboard.d.ts.map