UNPKG

@ducor/react

Version:

admin template ui interface

17 lines (16 loc) 541 B
interface UseClipboardOptions { format?: string; timeout?: number; } /** * `useClipboard` is a custom hook that performs the operation of copying a value to the clipboard. * * @see Docs https://ui.ducor.net/hooks/use-clipboard */ declare const useClipboard: (defaultValue?: string, timeoutOrOptions?: number | UseClipboardOptions) => { hasCopied: boolean; setValue: import("react").Dispatch<import("react").SetStateAction<string>>; value: string; onCopy: (newValue?: any) => void; }; export default useClipboard;