Skip to content

NodeGraphPortVisualProps

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

Properties

className?

optional className: string

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


color?

optional color: string

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

Stroke / fill colour. Defaults to currentColor so the parent <NodeGraph.Port> can route its colour prop and interaction-state colours (source / candidate / invalid) into the shape via the CSS color cascade. Pass an explicit colour when using the visual standalone (outside a port slot).


filled?

optional filled: boolean

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

Filled (true) paints the interior; hollow (false) draws an outline only — the standard “wired vs unwired pin” convention.

Default

false

shape?

optional shape: NodeGraphPortShape

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

Handle shape.

Default

'circle'

size?

optional size: number

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

Box size in CSS pixels.

Default

14

style?

optional style: CSSProperties

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