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-dropperpnpm add @ikun-ui/eye-dropperbash
yarn add @ikun-ui/eye-dropperyarn add @ikun-ui/eye-dropperbash
npm install @ikun-ui/eye-droppernpm install @ikun-ui/eye-dropperBasic usage
Call the eyedropper interface by using scoped slots
EyeDropper Props
| Name | Type | Default | Description |
|---|---|---|---|
| cls | string | - | Additional class |
| attrs | any | {} | Additional attributes |
EyeDropper Slots
| Name | Description |
|---|---|
| default | The element that triggers the eyedropper.The scope parameter is { sRGBHex, open, isSupported } |