svelte-color-well

3.0.0 • Public • Published

svelte color well

A color picker.

Install it

npm i svelte-color-well

Use it

<script>
  // import it to your component/app
  import ColorWell from 'svelte-color-well'
 
  // your color
  let yourColor
</script> 
 
<!-- use the component initializes with a random color -->
<ColorWell/>
 
<!-- initialize color and use rbg sliders -->
<ColorWell
  color='red'
  type='rgb'
/>
 
<!-- bind color to variable -->
<ColorWell bind:color={yourColor} />
 
<!-- see it in action -->
<h1>{yourColor}</h1>

TODO

  • text input

Readme

Keywords

Package Sidebar

Install

npm i svelte-color-well

Weekly Downloads

3

Version

3.0.0

License

MIT

Unpacked Size

402 kB

Total Files

4

Last publish

Collaborators

  • negroramen