1.0.7 • Published 5 years ago

svelte-color-picker v1.0.7

Weekly downloads
211
License
-
Repository
github
Last release
5 years ago

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.

\

PropsValue TypeUse
on:colorChangefunctionGiven function gets called every time color changes
startColorstringInitializes color picker with the value (hexadecimal without alpha).

License

MIT

1.0.7

5 years ago

1.0.7-beta.0

5 years ago

1.0.6

5 years ago

1.0.6-beta.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2-beta.1

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago