svelte-color-picker

1.0.7 • Public • Published

Svelte Color Picker [Demo Page]

svelte-v3

Installation

With npm

cd yourSvelteProject
$ npm i svelte-color-picker

Usage

In your component :

<script>
import {HsvPicker} from 'svelte-color-picker';
 
function colorCallback(rgba) {
    console.log(rgba.detail)
}
</script>
 
<HsvPicker on:colorChange={colorCallback} startColor={"#FBFBFB"}/>

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

Versions

Current Tags

Version History

Package Sidebar

Install

npm i svelte-color-picker

Weekly Downloads

501

Version

1.0.7

License

none

Unpacked Size

19.9 kB

Total Files

6

Last publish

Collaborators

  • qintarp