From 5039ccc1e60496df436e67081560023ea2535667 Mon Sep 17 00:00:00 2001 From: Jake Saunders Date: Sat, 14 Sep 2024 11:38:08 +0100 Subject: [PATCH] fix(custom-handle-example): update the custom handle example to svelte syntax --- .../pages/api-reference/components/handle.mdx | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/sites/svelteflow.dev/src/pages/api-reference/components/handle.mdx b/sites/svelteflow.dev/src/pages/api-reference/components/handle.mdx index de21e8089..6a17a0d53 100644 --- a/sites/svelteflow.dev/src/pages/api-reference/components/handle.mdx +++ b/sites/svelteflow.dev/src/pages/api-reference/components/handle.mdx @@ -44,17 +44,26 @@ connection source matches a given id. ```svelte -export const TargetHandleWithValidation = ({ position, source }) => ( - connection.source === source} - style={{ background: '#fff' }} - /> -); + ``` ### Style handles when connecting