refactor(svelte): add slot to controls, cleanup ControlButton types closes #3788
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
data-testid="svelte-flow__controls"
|
||||
aria-label={ariaLabel ?? 'Svelte Flow controls'}
|
||||
>
|
||||
<slot name="before" />
|
||||
{#if showZoom}
|
||||
<ControlButton
|
||||
on:click={onZoomInHandler}
|
||||
@@ -118,4 +119,6 @@
|
||||
{#if isInteractive}<UnlockIcon />{:else}<LockIcon />{/if}
|
||||
</ControlButton>
|
||||
{/if}
|
||||
<slot />
|
||||
<slot name="after" />
|
||||
</Panel>
|
||||
|
||||
Reference in New Issue
Block a user