Package Exports
- use-eye-dropper
- use-eye-dropper/lib/index.js
- use-eye-dropper/lib/index.module.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (use-eye-dropper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
useEyeDropper
Browser color picker hook for React.
Implements the EyeDropper API (currently only available in Chrome) into easy-to-use React hook.
Features
- Supports Server-Side rendering
- Safely detect and fallback on unsupported browsers using
isSupportedmethod. - Closes eye dropper when corresponding component is unmounted.
- Provides explicit
closemethod to cancel eye dropper (signals can still be used).