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
Graph.svelte
data.js
<script>
import data from './data.js';
import Graph from './Graph.svelte';
let show = false;
</script>

<input id="show" type="checkbox" bind:checked={show} />
<label for="show" style="display: inline;">show curve</label>

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