Svelte Playground

Reactive Svelte components, no build step required.

Frontend
<script>
  let count = 0;
</script>

<main>
  <h1>Hello Svelte!</h1>
  <p>Count: {count}</p>
  <button on:click={() => count++}>Add one</button>
</main>

<style>
  main { font-family: system-ui; padding: 24px; }
  button { padding: 6px 12px; }
</style>

About this playground

Write Svelte components with reactive declarations and slots. Live preview, npm imports, and shareable URLs.

Related Playground Tools