Examples
Misc
useSvelteFlow

useSvelteFlow

The useSvelteFlow hook gives you access to the Svelte Flow store and provides some functions for updating the viewport.

<script lang="ts">
const data: string = "world";
</script>

<h1>Hello {data}</h1>

<style>
h1 {
  font-size: 1.5rem;
}
</style>
Read-only