import { GraphLayout } from "@nodus/design-system"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
nodesreq | Node[] | — | Array of graph nodes |
edgesreq | Edge[] | — | Array of connections between nodes |
layout | "force" | "dagre" | "manual" | "force" | Layout algorithm |
onNodeClick | (id: string) => void | — | Node click handler |
nodesrequiredType
Node[]Default —Array of graph nodes
edgesrequiredType
Edge[]Default —Array of connections between nodes
layoutType
"force" | "dagre" | "manual"Default "force"Layout algorithm
onNodeClickType
(id: string) => voidDefault —Node click handler
MobileStacks / Scroll
Graph canvas does not reflow automatically. On mobile, wrap in a fixed-height scrollable container (overflow: auto; -webkit-overflow-scrolling: touch). Consider a simplified list view as a mobile fallback.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?