chore(svelte): add detached handle example

This commit is contained in:
moklick
2025-08-12 13:36:33 +02:00
parent 295884fea9
commit 9c0d88ca34
3 changed files with 80 additions and 2 deletions
@@ -1,6 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { page } from '$app/state';
const routes = [
'a11y',
@@ -9,6 +9,7 @@
'custom-connection-line',
'customnode',
'dagre',
'detached-handle',
'drag-n-drop',
'edges',
'figma',
@@ -36,7 +37,7 @@
<header>
<div class="logo">Svelte Flow</div>
<select onchange={onChange} value={$page.route.id}>
<select onchange={onChange} value={page.route.id}>
{#each routes as route}
<option value={`/examples/${route}`}>{route}</option>
{/each}