export htmlattributes as props where possible
This commit is contained in:
@@ -27,7 +27,8 @@
|
||||
fitViewOptions,
|
||||
children,
|
||||
before,
|
||||
after
|
||||
after,
|
||||
...rest
|
||||
}: ControlsProps = $props();
|
||||
|
||||
const store = useStore();
|
||||
@@ -74,6 +75,7 @@
|
||||
data-testid="svelte-flow__controls"
|
||||
aria-label={ariaLabel ?? 'Svelte Flow controls'}
|
||||
{style}
|
||||
{...rest}
|
||||
>
|
||||
{#if before}
|
||||
{@render before()}
|
||||
|
||||
Reference in New Issue
Block a user