useEyeDropper
Leverages the EyeDropper API to let users pick colors from their screen.
Usage
Basic usage example to quickly see how the useEyeDropper
works.
Your browser does not support the EyeDropper API
API References
The EyeDropper interface represents an instance of an eyedropper tool that can be opened and used by the user to select colors from the screen.
This example shows how to open an eyedropper tool and wait for the user to either select a pixel from the screen, or press Escape
to cancel the eyedropper mode.
Source Codes
Full working code example, including necessary markup and styles. You can copy and paste this code directly to start using the component immediately.