svelte-color-well

Svelte Color Well

A svelte color picker.

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

Top categories

Loading Svelte Themes