NodeLabel

A component that renders a node label with text that is placed at coordinates that resulted from a yFiles layout algorithm. Node labels can appear outside the node and be rotated. The text must be specified in data.label and the label box is retrieved from data.yData.labelBoxes.

export function CustomNode(props: NodeProps) {
  return (
    <>
      <NodeLabel {...props}></NodeLabel>
    </>
  )
}