@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
19 lines • 554 B
TypeScript
//#region src/hooks/use-eye-dropper/index.d.ts
interface EyeDropperOptions {
signal?: AbortSignal;
}
interface EyeDropperReturn {
sRGBHex: string;
}
/**
* `useEyeDropper` is a custom hook that opens the eye dropper tool and returns the color value.
*
* @see https://yamada-ui.com/docs/hooks/use-eye-dropper
*/
declare const useEyeDropper: () => {
supported: boolean;
onOpen: (options?: EyeDropperOptions) => Promise<EyeDropperReturn | undefined>;
};
//#endregion
export { EyeDropperReturn, useEyeDropper };
//# sourceMappingURL=index.d.ts.map