reactuals
Version:
A useful package providing a collection of 50+ React hooks and utilities to simplify React development.
15 lines (14 loc) • 344 B
TypeScript
type EyeDropperResult = {
sRGBHex: string;
};
export declare function useEyeDropper(): {
pickColor: () => Promise<{
result: EyeDropperResult | null;
error?: Error | undefined;
}>;
isSupported: () => boolean;
error: Error | undefined;
clearError: () => void;
pickedColor: string | null;
};
export {};