Skip to content

useEyeDropper ​

browser
test coverage
Last changed: 28 days ago

TIP

This hook uses EyeDropper browser api to provide enhanced functionality. Make sure to check for compatibility with different browsers when using this api

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

Source ​

Source • Demo

Contributors ​

Avatardebabin
Avatarhywax

Released under the MIT License.