NODE GRAPH
SVG node-edge graph for visualizing networks, pipelines, and system topologies. Supports directed arrowheads, animated marching-ants edges, per-node status colors, and hover highlights.
PREVIEW
INSTALLATION
USAGE
DIRECTED + ANIMATED
VARIANTS
variant="ACTIVE"
variant="WARNING"
variant="CRITICAL"
variant="DEFAULT"
NODE STATUS COLORS
PROPS
| PROP | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| nodes | NodeGraphNode[] | — | Array of nodes. x/y are 0–100 coordinate space. |
| edges | NodeGraphEdge[] | — | Array of from/to edge connections. |
| variant | DEFAULT | ACTIVE | WARNING | CRITICAL | ACTIVE | Controls default edge and fallback node color. |
| title | string | undefined | Optional header label. |
| height | number | 320 | SVG height in px. |
| directed | boolean | false | Show arrowheads on edges. |
| className | string | — | Additional classes merged via cn(). |