Well I get it now!!🥳...
Did some experimentations and finally got it the with this basic example..
example I used for understanding: <Attached>
This code did the trick:
return (
<div className="text-updater-node bg-amber-300 text-black p-2 rounded-[10px] hover:brightness-150 active:bg-blue-400 transition duration-300">
<div className='bg-orange-400 p-1 relative'>
Text
<Handle
type="source"
position={Position.Right}
id="text-handle"
style={{ background: '#ff6b6b' }}
/>
</div>
<div className='bg-blue-400'>
Lorem ipsum dolor sit amet consectetur
</div>
</div>
);
}
const nodeTypes = {
simpleTextNode: SimpleTextNode,
}
const initialNodes = [
{ id: 'n1', position: { x: 0, y: 0 }, data: { label: 'Node 1' } },
{ id: 'n2', position: { x: 160, y: 0 }, data: { label: 'Node 2' } },
{ id: 'textNode1', type: 'simpleTextNode', position: { x: 100, y: -150 } }
];
// Added edge from the text handle to node 2
const initialEdges = [
{ id: 'n1-n2', source: 'n1', target: 'n2' },
{ id: 'textNode1-n2', source: 'textNode1', sourceHandle: 'text-handle', target: 'n2' }
];```