feat(controls): add orientation, style and class props closes #4069

This commit is contained in:
moklick
2024-04-04 12:53:05 +02:00
parent 56477f058d
commit 508efab624
8 changed files with 36 additions and 4 deletions
@@ -237,7 +237,7 @@ const OverviewFlow = () => {
onPaneMouseMove={onPaneMouseMove}
>
<MiniMap nodeBorderRadius={2} />
<Controls />
<Controls orientation="horizontal" />
<Background gap={25} />
</ReactFlow>
);
@@ -191,7 +191,7 @@
attributionPosition={'top-center'}
deleteKey={['Backspace', 'd']}
>
<Controls>
<Controls orientation="horizontal">
<ControlButton slot="before">xy</ControlButton>
<ControlButton aria-label="log" on:click={() => console.log('control button')}
>log</ControlButton