Examples
Styling
Base Style

Base Style

Svelte Flow comes with a default style and a minimal base style (used in this example). The base style is mandatory for a flow to work. You can find more information about how to style a flow in the theming guide.

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

<h1>Hello {data}</h1>

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