From 21e25d698c12062a9f6a63f2cb8d72a46e07519f Mon Sep 17 00:00:00 2001 From: Abbey Yacoe Date: Thu, 22 May 2025 15:04:20 +0200 Subject: [PATCH] feat(node): add `as` property to allow custom HTML elements --- examples/react/src/examples/A11y/index.tsx | 6 ++-- .../src/routes/examples/a11y/+page.svelte | 5 ++- .../src/components/NodeWrapper/index.tsx | 34 +++++++++++++------ .../components/NodeWrapper/NodeWrapper.svelte | 27 +++++++++------ packages/system/src/types/nodes.ts | 4 +++ 5 files changed, 47 insertions(+), 29 deletions(-) diff --git a/examples/react/src/examples/A11y/index.tsx b/examples/react/src/examples/A11y/index.tsx index 3f872bfb..4cc2cdff 100644 --- a/examples/react/src/examples/A11y/index.tsx +++ b/examples/react/src/examples/A11y/index.tsx @@ -22,19 +22,17 @@ const initialNodes: Node[] = [ type: 'input', data: { label: 'A11y Node 1' }, position: { x: 250, y: 5 }, - className: 'light', }, { id: '2', - data: { label: 'Node 2' }, + data: { label: '