scp

svelte-color-picker

A color picker component for svelte

Showing:

Popularity

Downloads/wk

217

GitHub Stars

81

Maintenance

Last Commit

1yr ago

Contributors

3

Package

Dependencies

1

License

Type Definitions

Tree-Shakeable

No?

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Tutorials

No tutorials found
Add a tutorial