https://svelteflow.dev/api-reference/hooks/use-store
useStore() - Svelte Flow
The useStore hook can be used to access the internal store of the Svelte Flow.
svelte flowusestore
https://svelteflow.dev/learn/layouting/layouting-libraries
Layouting - Svelte Flow
Explore various layouting libraries compatible with Svelte Flow, including Dagre, D3-Hierarchy, D3-Force, and ELK. Learn how to implement different layout...
svelte flow
https://svelteflow.dev/api-reference/components/viewport-portal
The ViewportPortal component - Svelte Flow
The ViewportPortal component can be used to add components to the same viewport of the flow where nodes and edges are rendered. This is useful when you want to...
svelte flowcomponent
https://svelteflow.dev/api-reference/components
Components - Svelte Flow
Svelte Flow - Customizable library for rendering workflows, diagrams and node-based UIs.
svelte flowcomponents
https://svelteflow.dev/api-reference/types/xy-position
XYPosition - Svelte Flow
All positions are stored in an object with x and y coordinates.
svelte flowxyposition
https://svelteflow.dev/api-reference/types/on-reconnect
OnReconnect - Svelte Flow
Callback function triggered when an existing edge is reconnected to a different node or handle in SvelteFlow.
svelte flowonreconnect
https://stackblitz.com/edit/svelte-flow-starter?file=src%2FFlow%2Findex.svelte
Svelte Flow - Starter - StackBlitz
Svelte Flow starter https://svelteflow.dev
svelte flowstarterstackblitz
https://svelteflow.dev/api-reference/utils
Utils - Svelte Flow
Svelte Flow - Customizable library for rendering workflows, diagrams and node-based UIs.
svelte flowutils
https://svelteflow.dev/examples/edges/edge-markers
Edge Markers - Svelte Flow
Add markers to the start and end of edges
edge markerssvelte flow
https://svelteflow.dev/api-reference/types/edge
Edge - Svelte Flow
An Edge is the complete description with everything Svelte Flow needs to know in order to render it.
svelte flowedge
https://svelteflow.dev/learn/getting-started/installation
Installation and Requirements - Svelte Flow
Learn how to install and set up Svelte Flow in your project. Includes package installation via npm/yarn/pnpm/bun, style imports, and a quick-start template for...
installation and requirementssvelte flow
https://svelteflow.dev/api-reference/utils/is-node
isNode() - Svelte Flow
Test whether an object is usable as an Node. In TypeScript this is a type guard that will narrow the type of whatever you pass in to Node if it returns true.
svelte flow
https://svelteflow.dev/api-reference/types/on-reconnect-start
OnReconnectStart - Svelte Flow
Callback function triggered when reconnecting an existing edge in SvelteFlow.
svelte flowonreconnectstart
https://svelteflow.dev/api-reference/types/on-move
OnMove - Svelte Flow
Callback function triggered when the viewport is moved in SvelteFlow.
svelte flowonmove
https://svelteflow.dev/whats-new/2026-03-27
Svelte Flow 1.5.2 - Svelte Flow
Changelog for Svelte Flow version 1.5.2
svelte flow
https://svelteflow.dev/examples/styling/base-style
Base Style - Svelte Flow
Customize the base styling of your flow
base stylesvelte flow
https://svelteflow.dev/api-reference/hooks/use-svelte-flow
useSvelteFlow() - Svelte Flow
The useSvelteFlow hook returns functions to update the viewport, transform coordinates or get node intersections for example.
svelte flow
https://svelteflow.dev/api-reference/types/pan-on-scroll-mode
PanOnScrollMode - Svelte Flow
Configures how the viewport responds to scroll events in SvelteFlow, allowing free, vertical, or horizontal panning.
svelte flowpanonscrollmode
https://svelteflow.dev/api-reference/types/svelte-flow-store
SvelteFlowStore - Svelte Flow
The internal data structure of the Svelte Flow store.
svelte flowsvelteflowstore
https://svelteflow.dev/examples/whiteboard/eraser
Eraser - Svelte Flow
An eraser tool that let's you delete nodes and edges by wiping them out
svelte floweraser
https://svelteflow.dev/api-reference/hooks/use-update-node-internals
useUpdateNodeInternals() - Svelte Flow
When you programmatically add or remove handles to a node or update a node's handle position, you need to inform Svelte Flow about it by using this hook. This...
svelte flow
https://svelteflow.dev/api-reference/types/coordinate-extent
CoordinateExtent - Svelte Flow
A coordinate extent represents two points in a coordinate system; one in the top left corner and one in the bottom right corner. It is used to represent the...
svelte flowcoordinateextent
https://svelteflow.dev/examples/layout/subflows
Subflows - Svelte Flow
Create nested flows within your graph
svelte flowsubflows
https://svelteflow.dev/examples/nodes/proximity-connect
Proximity Connect - Svelte Flow
Automatically create edges when nodes get close to each other
proximity connectsvelte flow
https://svelteflow.dev/examples/nodes/delete-middle-node
Delete Middle Node - Svelte Flow
Remove a node without breaking the flow
delete middle nodesvelte flow
https://svelteflow.dev/api-reference/types/node-target-event-with-pointer
NodeTargetEventWithPointer - Svelte Flow
Event type that includes pointer information for target node interactions in SvelteFlow.
svelte flownodetargeteventwithpointer
https://svelteflow.dev/examples/misc/transitions
Transitions - Svelte Flow
svelte flowtransitions
https://svelteflow.dev/api-reference/components/node-toolbar
The NodeToolbar component - Svelte Flow
The NodeToolbar component can be used to display a toolbar on a side of a node or display a tooltip for example.
svelte flowcomponent
https://svelteflow.dev/api-reference/types/on-reconnect-end
OnReconnectEnd - Svelte Flow
Callback function triggered when finishing or canceling the reconnection of an edge in SvelteFlow.
svelte flowonreconnectend
https://svelteflow.dev/examples/nodes/node-resizer
Node Resizer - Svelte Flow
Change the size of a node with a bounding box or draggable icon
node resizersvelte flow
https://svelteflow.dev/api-reference/utils/get-outgoers
getOutgoers() - Svelte Flow
This util is used to tell you what nodes, if any, are connected to the given node as the target of an edge.
svelte flow
https://svelteflow.dev/examples/whiteboard/rectangle
Rectangle - Svelte Flow
An example about drawing rectangles on a whiteboard using Svelte Flow.
svelte flowrectangle
https://svelteflow.dev/api-reference/utils/is-edge
isEdge() - Svelte Flow
Test whether an object is usable as an Edge. In TypeScript this is a type guard that will narrow the type of whatever you pass in to Edge if it returns true.
svelte flow
https://svelteflow.dev/examples/nodes/stress
Stress Test - Svelte Flow
Render hundreds of nodes and edges at once
stress testsvelte flow
https://svelteflow.dev/api-reference/types/align
Align - Svelte Flow
The Align type contains the values expected by the align prop of the NodeToolbar component
svelte flowalign
https://svelteflow.dev/api-reference/components/panel
The Panel component - Svelte Flow
The Panel component helps you position content above the viewport. It is used internally by the MiniMap and Controls components.
the panelsvelte flowcomponent
https://svelteflow.dev/api-reference/utils/get-incomers
getIncomers() - Svelte Flow
This util is used to tell you what nodes, if any, are connected to the given node as the source of an edge.
svelte flow
https://svelteflow.dev/examples/nodes/custom-node
Custom Nodes - Svelte Flow
Display any content inside of a node
custom nodessvelte flow
https://svelteflow.dev/api-reference/types/node-props
NodeProps - Svelte Flow
When you implement a custom node it is wrapped in a component that enables basic functionality like drag, select and remove. A custom node gets the following...
svelte flownodeprops
https://svelteflow.dev/examples/overview
Feature Overview - Svelte Flow
An feature overview example showing the most used features of Svelte Flow - controls, MiniMap, node types, edge types, edge labels, and custom styling.
feature overviewsvelte flow
https://svelteflow.dev/api-reference/types/edge-props
EdgeProps - Svelte Flow
When you implement a custom edge it is wrapped in a component that enables some basic functionality.
svelte flowedgeprops
https://svelteflow.dev/api-reference/types/node-connection
NodeConnection - Svelte Flow
The NodeConnection type is a Connection that includes the edgeId.
svelte flownodeconnection
https://svelteflow.dev/api-reference/hooks
Hooks - Svelte Flow
Svelte Flow - Customizable library for rendering workflows, diagrams and node-based UIs.
svelte flowhooks
https://svelteflow.dev/api-reference/svelte-flow
The SvelteFlow component - Svelte Flow
The SvelteFlow component is the heart of your Svelte Flow application.
svelte flowcomponent
https://svelteflow.dev/support-us
Support Svelte Flow - Svelte Flow
There are many ways you can support Svelte Flow.
svelte flowsupport
https://svelteflow.dev/examples/edges/edge-types
Edge Types - Svelte Flow
Use different built-in edge types
edge typessvelte flow
https://svelteflow.dev/api-reference/types/node-origin
NodeOrigin - Svelte Flow
The origin of a Node determines how it is placed relative to its own coordinates.
svelte flownodeorigin
https://svelteflow.dev/learn/getting-started/key-concepts
Key Concepts - Svelte Flow
Understand the fundamental concepts of Svelte Flow - from the interactive canvas and node-edge system to viewport management and built-in components. Essential...
key conceptssvelte flow
https://svelteflow.dev/examples/edges/custom-connectionline
Custom Connection Line - Svelte Flow
Create a custom connection line while dragging
custom connection linesvelte flow
https://svelteflow.dev/learn/troubleshooting/remove-attribution
Remove Attribution - Svelte Flow
When and how to remove the Svelte Flow attribution from your flows.
remove attributionsvelte flow
https://svelteflow.dev/api-reference/types/node-types
NodeTypes - Svelte Flow
Defines the available node types and their corresponding components in SvelteFlow.
svelte flownodetypes
https://svelteflow.dev/api-reference/types/snapgrid
SnapGrid - Svelte Flow
The SnapGrid type is used to define the grid size for snapping nodes on the pane.
svelte flowsnapgrid
https://svelteflow.dev/examples/edges/custom-edges
Custom Edges - Svelte Flow
Create and use custom edge types
custom edgessvelte flow
https://svelteflow.dev/examples
Examples - Svelte Flow
Overview of React Flow examples for practical copy-paste solutions to common use cases.
svelte flowexamples
https://svelteflow.dev/learn/customization/theming
Theming - Svelte Flow
Learn how to customize Svelte Flow's appearance through CSS variables, class overrides, and styling solutions like Tailwind. This guide covers default styles,...
svelte flowtheming
https://svelteflow.dev/api-reference/types/edge-marker
EdgeMarker - Svelte Flow
You can customize the built-in edge markers with the edgeMarker prop.
svelte flowedgemarker
https://svelteflow.dev/api-reference/types/internal-node
InternalNode - Svelte Flow
The internal node is an extension of the user node. It is used internally and has some more information that is not exposed to the user directly, like...
svelte flowinternalnode
https://svelteflow.dev/examples/interaction/contextual-zoom
Contextual Zoom - Svelte Flow
Zoom to specific nodes or areas of the flow
contextual zoomsvelte flow
https://svelteflow.dev/api-reference/types/position
Position - Svelte Flow
While PanelPosition can be used to place a component in the corners of a container, the Position enum is less precise and used primarily in relation to edges...
svelte flowposition
https://svelteflow.dev/examples/nodes/drag-handle
Drag Handle - Svelte Flow
Restrict dragging to a specific part of node
drag handlesvelte flow
https://svelteflow.dev/examples/whiteboard/lasso-selection
Lasso Selection - Svelte Flow
Implement lasso selection for nodes using Svelte Flow
lasso selectionsvelte flow
https://svelteflow.dev/api-reference/types/background-variant
BackgroundVariant - Svelte Flow
The three variants are exported as an enum for convenience. You can either import the enum and use it like BackgroundVariant.Lines or you can use the raw...
svelte flowbackgroundvariant
https://svelteflow.dev/examples/interaction/validation
Validation - Svelte Flow
Check if a new connection is valid and should be added
svelte flowvalidation
https://svelteflow.dev/api-reference/types/key-definition
KeyDefinition - Svelte Flow
A key definition is a string or an object that describes a key and a modifier.
svelte flowkeydefinition
https://svelteflow.dev/api-reference/types/panel-position
PanelPosition - Svelte Flow
This type is mostly used to help position things on top of the flow viewport. For example both the MiniMap and Controls components take a position prop of this...
svelte flowpanelposition
https://svelteflow.dev/api-reference/types
Types - Svelte Flow
Svelte Flow - Customizable library for rendering workflows, diagrams and node-based UIs.
svelte flowtypes
https://svelteflow.dev/examples/edges/edge-labels
Edge Labels - Svelte Flow
Add and customize labels on edges
edge labelssvelte flow
https://svelteflow.dev/api-reference/types/on-connect-end
OnConnectEnd - Svelte Flow
Callback function triggered when finishing or canceling a connection attempt between nodes.
svelte flowonconnectend
https://svelteflow.dev/examples/misc/download-image
Download Image - Svelte Flow
Export your flow as an image
download imagesvelte flow
https://svelteflow.dev/api-reference/components/node-resize-control
The NodeResizeControl component - Svelte Flow
To create your own resizing UI, you can use the NodeResizeControl component where you can pass children (such as icons).
svelte flowcomponent
https://svelteflow.dev/api-reference/utils/get-nodes-bounds
getNodesBounds() - Svelte Flow
Returns the bounding box that contains all the given nodes in an array. This can be useful when combined with getTransformForBounds to calculate the correct...
svelte flow
https://svelteflow.dev/api-reference/types/selection-mode
SelectionMode - Svelte Flow
Controls how nodes are selected in SvelteFlow, offering either full or partial selection behavior.
svelte flowselectionmode
https://svelteflow.dev/api-reference/hooks/use-node-connections
useNodeConnections() - Svelte Flow
This hook returns an array of connected edges. Components that use this hook will re-render whenever any edge changes.
svelte flow
https://svelteflow.dev/api-reference/utils/get-bezier-path
getBezierPath() - Svelte Flow
The getBezierPath util returns everything you need to render a bezier edge between two nodes.
svelte flow
https://svelteflow.dev/examples/nodes/connection-limit
Connection Limit - Svelte Flow
Use the `isConnectable` prop to limit the number of connections a handle can have
connection limitsvelte flow
https://svelteflow.dev/learn/advanced/server-side-rendering
Server Side Rendering - Svelte Flow
Learn how to implement server-side rendering with Svelte Flow for static flow diagrams, dynamic image generation, and non-JavaScript environments. Includes...
server side renderingsvelte flow
https://svelteflow.dev/api-reference/types/node
Node - Svelte Flow
The Node type represents everything Svelte Flow needs to know about a given node. Many of these properties can be manipulated both by Svelte Flow or by you,...
svelte flownode
https://xyflow.com/blog/why-svelte-flow
Why Svelte Flow? - xyflow
xyflow - Open source libraries for creating interactive workflows, dynamic diagrams and custom node-based UIs.
svelte flowxyflow
https://svelteflow.dev/examples/styling/dark-mode
Dark Mode - Svelte Flow
Implement dark mode in your flow
dark modesvelte flow
https://svelteflow.dev/examples/layout/horizontal-flow
Horizontal Flow - Svelte Flow
Create a horizontal flow layout
horizontal flowsvelte