useEyeDropper

useEyeDropper is a custom hook that opens the eye dropper tool and returns the color value.

#FF0000

EyeDropper API is not supported in this browser.

Usage

import { useEyeDropper } from "@yamada-ui/react"
const { supported, onOpen } = useEyeDropper()