Skip to content

EyeDropper

const EyeDropper: React.FC<EyeDropperProps>

Defined in: src/components/controls/ColorPicker/EyeDropper.tsx:48

EyeDropper button that opens the native browser EyeDropper API to sample a color from anywhere on the screen.

Renders nothing if the EyeDropper API is not available in the browser.

Example

<EyeDropper onColorPick={(hex) => setColor(hex)} />