eyeDropperStore

A store with open action and a color readable whose value will be set to eye dropper selection.

Demo

Color will appear here.

Usage

<script lang="ts">
import { eyeDropperStore } from 'svelte-legos';

const { open, color } = eyeDropperStore('black');
</script>

<button on:click={open}>
    Open EyeDropper
</button>

<div style:background={$color}></div>