Graph
Visualize document relationships
The graph component displays an interactive node graph for visualizing relationships between documents.
Usage
Props
| prop | type | default | description |
|---|---|---|---|
| nodes | GraphNode[] | required | Array of nodes to display |
| links | GraphLink[] | required | Array of connections between nodes |
| onNodeClick | (node: GraphNode) => void | - | Callback when a node is clicked |
| width | number | 600 | Canvas width |
| height | number | 400 | Canvas height |
Types
Navigation
Use onNodeClick to navigate to pages: