UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

21 lines (20 loc) 653 B
import * as react0 from "react"; //#region src/hooks/use-clipboard/index.d.ts interface UseClipboardOptions { format?: string; timeout?: number; } /** * `useClipboard` is a custom hook that performs the operation of copying a value to the clipboard. * * @see https://yamada-ui.com/docs/hooks/use-clipboard */ declare const useClipboard: (defaultValue?: string, timeoutOrOptions?: number | UseClipboardOptions) => { copied: boolean; setValue: react0.Dispatch<react0.SetStateAction<string>>; value: string; onCopy: (newValue?: any) => void; }; //#endregion export { UseClipboardOptions, useClipboard }; //# sourceMappingURL=index.d.ts.map