feat(svelte): add SvelteFlowProvider and useSvelteFlow hook

This commit is contained in:
moklick
2023-03-08 20:17:33 +01:00
parent 71cdc0ff02
commit 7bd8032ea4
19 changed files with 202 additions and 46 deletions
+18 -2
View File
@@ -2,5 +2,21 @@
import { Header } from '../example-components/Header'
</script>
<Header />
<slot />
<div class="app">
<Header />
<div class="flow">
<slot />
</div>
</div>
<style>
.app {
display: flex;
flex-direction: column;
height: 100%;
}
.flow {
flex: 1;
}
</style>