Skip to content

NodeGraphPortVisual

NodeGraphPortVisual(__namedParameters): ReactElement

Defined in: src/components/editor/NodeGraph/NodeGraphPortVisual.tsx:74

Presentational handle shape for a node-graph port. Rendered by <NodeGraph.Port> when no children are supplied, and exported so consumers can reuse the exact handle look inside fully custom port visuals (e.g. a coloured ring beside a typed label).

The shape paints with currentColor unless color is set, which lets the port slot drive the colour from its color prop and override it on the connection-drag states without this component knowing about them.

Parameters

__namedParameters

NodeGraphPortVisualProps

Returns

ReactElement