feat(svelte): add SvelteFlowProvider and useSvelteFlow hook
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user