Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
ColourPicker.svelte
HSVColourPicker.svelte
Icon.svelte
<script>
// https://github.com/keithj2780/svelte-editable-palette
let name = 'world';
import HSVColourPicker from './HSVColourPicker.svelte';
import ColourPicker from './ColourPicker.svelte';
function colorChange(e) {
console.log('change',e.detail);
}
function colorInput(e) {
console.log('input',e.detail);
}
</script>

<h1>Standalone HSV Colour Picker</h1>

<HSVColourPicker startColor={"#000000"} on:change={colorChange} on:input={colorInput} showAlphaSlider={true}
showInfoBox={true}/>

<hr/>
<h1>Standalone Palette Colour Picker editable using HSV Colour Picker</h1>

<ColourPicker on:change={colorChange} on:input={colorInput}/>

loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */