feat: add role prop to nodes

This commit is contained in:
Abbey Yacoe
2025-05-26 17:08:29 +02:00
parent 0af2f2801d
commit ba9df8eaf8
4 changed files with 21 additions and 4 deletions
+2 -1
View File
@@ -25,9 +25,10 @@ const initialNodes: Node[] = [
{
id: '1',
type: 'input',
data: { label: 'Node 1' },
data: { label: 'Focusable Node' },
position: { x: 250, y: 5 },
className: 'light',
role: null,
},
{
id: '2',