UNPKG

@mmcodemark/fuselage-hooks

Version:

React hooks for Fuselage, Rocket.Chat's design system and UI toolkit

18 lines 572 B
type UseClipboardParams = { clearTime?: number; onCopySuccess?: (e?: Event) => void; onCopyError?: (e?: Error) => void; }; export type UseClipboardReturn = { copy: (e?: Event) => Promise<void>; hasCopied: boolean; }; /** * Hook to copy the passed content to the clipboard. * * @returns an object with the copy function and the hasCopied state * @public */ export declare const useClipboard: (text: string, { clearTime, onCopySuccess, onCopyError, }?: UseClipboardParams) => UseClipboardReturn; export {}; //# sourceMappingURL=useClipboard.d.ts.map