Skip to content

KEyeDropper

An eyedropper tool that can be opened and used by the user to select colors from the screen.

Install

bash
pnpm add @ikun-ui/eye-dropper
bash
yarn add @ikun-ui/eye-dropper
bash
npm install @ikun-ui/eye-dropper

Basic usage

Call the eyedropper interface by using scoped slots

EyeDropper Props

NameTypeDefaultDescription
clsstring-Additional class
attrsRecord<string, string>{}Additional attributes

EyeDropper Slots

NameDescription
defaultThe element that triggers the eyedropper.The scope parameter is { sRGBHex, open, isSupported }

MIT Licensed