feat(svelte): add background
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { Node, Edge } from '@reactflow/system';
|
||||
|
||||
import SvelteFlow, { Controls } from '../lib/index';
|
||||
import SvelteFlow, { Controls, Background, BackgroundVariant } from '../lib/index';
|
||||
|
||||
const yNodes = 10;
|
||||
const xNodes = 10;
|
||||
@@ -59,6 +59,7 @@
|
||||
|
||||
<SvelteFlow {nodes} {edges} fitView >
|
||||
<Controls />
|
||||
<Background variant={BackgroundVariant.Dots} />
|
||||
</SvelteFlow>
|
||||
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user