- Notifications
You must be signed in to change notification settings - Fork23
A color picker component for svelte
License
NotificationsYou must be signed in to change notification settings
efeskucuk/svelte-color-picker
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Svelte Color Picker[Demo Page]
With npm
$cd yourSvelteProject$ npm i svelte-color-pickerIn your component :
<script>import{HsvPicker} from 'svelte-color-picker';function colorCallback(rgba){console.log(rgba.detail)}</script><HsvPickeron:colorChange={colorCallback}startColor={"#FBFBFB"}/>
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). |
MIT
About
A color picker component for svelte
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.