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
Name | Type | Default | Description |
---|---|---|---|
cls | string | - | Additional class |
attrs | Record<string, string> | {} | Additional attributes |
EyeDropper Slots
Name | Description |
---|---|
default | The element that triggers the eyedropper.The scope parameter is { sRGBHex , open , isSupported } |