Socket
Socket
Sign inDemoInstall

svelte-color-picker

Package Overview
Dependencies
11
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    svelte-color-picker

[![svelte-v3](https://img.shields.io/badge/svelte-v3-blueviolet.svg)](https://svelte.dev) ## Installation


Version published
Weekly downloads
559
decreased by-0.53%
Maintainers
1
Install size
182 kB
Created
Weekly downloads
 

Readme

Source

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>
PropsValue TypeUse
on:colorChangefunctionGiven function gets called every time color changes
startColorstringInitializes color picker with the value (hexadecimal without alpha).

License

MIT

FAQs

Last updated on 12 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc