You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there anything I can do to turn my label into div element attaching my own style? And I would like to have more control on label position as well. Closer to the start or closer to the end. See how this can be achieved with ReactFlow for example https://reactflow.dev/docs/examples/edges/edge-label-renderer/
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Based on this I see it's easy to add labels on edges https://reaflow.dev/?path=/story/demos-edges--labels
But what if I want label to have green background and red border and font size 12 for example? I see that nodes can be dramatically modified using
foreignobject
as described here https://reaflow.dev/?path=/story/demos-nodes--foreign-objectsIs there anything I can do to turn my label into div element attaching my own style? And I would like to have more control on label position as well. Closer to the start or closer to the end. See how this can be achieved with ReactFlow for example https://reactflow.dev/docs/examples/edges/edge-label-renderer/
Maybe I am missing something obvious?
Beta Was this translation helpful? Give feedback.
All reactions