[Demo Page]
Svelte Color PickerInstallation
With npm
$ cd yourSvelteProject$ npm i svelte-color-picker
Usage
In your component :
<script>import HsvPicker from 'svelte-color-picker'; { console}</script> <HsvPicker = =/>
Components
Svelte Color Picker currently has one type of colorpicker.
</HsvPicker>
Props | Value Type | Use |
---|---|---|
on:colorChange | function | Given function gets called every time color changes |
startColor | string | Initializes color picker with the value (hexadecimal without alpha). |
License
MIT