Skip to content

useEyeDropper ​

Category
Browser

Hook that gives you access to the eye dropper

typescript
import { useEyeDropper } from '@siberiacancode/reactuse';

Usage ​

typescript
const { supported, value, open } = useEyeDropper();

Demo ​

Api ​

Parameters

NameTypeDefaultNote
initialValue?stringundefinedThe initial value for the eye dropper

Contributors ​

Source • Demo