Skip to Content
🚨 New Example: Handling Node Collisions!
ExamplesFeature Overview

Feature Overview

This is an overview example of what’s possible with Svelte Flow. Below you can see features like: built-in node and edge types, sub flows, NodeToolbar, NodeResizer components. On the bottom you see the Controls and the MiniMap components.

<script module> import type { Node, NodeProps } from '@xyflow/svelte'; export type AnnotationNode = Node<{ label: string; level: number; arrowStyle?: string; }>; </script> <script lang="ts"> let { data }: NodeProps<AnnotationNode> = $props(); </script> <div class="annotation-content"> <div class="annotation-level">{data.level}.</div> <div>{data.label}</div> </div> {#if data.arrowStyle} <div class="annotation-arrow" style={data.arrowStyle}>⤹</div> {/if}
Last updated on