Skip to content

NodeGraphBackgroundSlotProps

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:621

Properties

background?

optional background: string

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:637

Optional background colour. Defaults to theme background.primary.


color?

optional color: string

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:635

Optional dot/line colour. Defaults to theme border.default.


gap?

optional gap: number

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:633

Grid spacing in world units. The pattern repeats at this interval regardless of zoom.

Default

24

variant?

optional variant: "none" | "grid" | "dots"

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:627

Background style. 'dots' and 'grid' are built in; pass 'none' for an opaque background only.

Default

'dots'