JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 31291
  • Score
    100M100P100Q162817F
  • License MIT

Browser color picker hook for React

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 isSupported method.
  • Closes eye dropper when corresponding component is unmounted.
  • Provides explicit close method to cancel eye dropper (signals can still be used).