feat(controls): add orientation, style and class props closes #4069
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user