Skip to content

EdgePrimitive

stable

SVG connection line between graph nodes

import { EdgePrimitive } from "@nodus/design-system"
Loading demo…

Props

idrequired
Type stringDefault

Unique edge identifier

x1required
Type numberDefault

Start X coordinate

y1required
Type numberDefault

Start Y coordinate

x2required
Type numberDefault

End X coordinate

y2required
Type numberDefault

End Y coordinate

weight
Type "thin" | "medium" | "thick"Default "thin"

Line thickness

type
Type "solid" | "dashed" | "animated"Default "solid"

Line style

direction
Type "none" | "forward" | "backward" | "bidirectional"Default "none"

Arrow direction

Metadatasemanticbordermotion
MobileWorks As-Is

SVG path renders in its parent container. Pan/zoom on mobile requires explicit touch handling by the parent graph component.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?