Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/efeskucuk/svelte-color-picker

A color picker component for svelte
https://github.com/efeskucuk/svelte-color-picker

color-picker svelte svelte-v3 sveltejs

Last synced: about 1 month ago
JSON representation

A color picker component for svelte

Awesome Lists containing this project

README

        

# Svelte Color Picker [\[Demo Page\]](https://efeskucuk.github.io/svelte-color-picker/)
[![svelte-v3](https://img.shields.io/badge/svelte-v3-blueviolet.svg)](https://svelte.dev)
## Installation

With npm
```sh
$ cd yourSvelteProject
$ npm i svelte-color-picker
```

## Usage
In your component :
```jsx

import {HsvPicker} from 'svelte-color-picker';

function colorCallback(rgba) {
console.log(rgba.detail)
}

```

## Components

Svelte Color Picker currently has one type of colorpicker.

#### \
| 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