sigilUI

Network Graph

A node-link network graph for relationship visualization with weighted edges.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { NetworkGraph } from "@sigil-ui/components";

Usage

<NetworkGraph
  nodes={[
    { id: "a", label: "Node A", x: 100, y: 100, size: 10 },
    { id: "b", label: "Node B", x: 300, y: 80 },
  ]}
  edges={[
    { source: "a", target: "b", weight: 2 },
  ]}
/>

Props

PropTypeDefaultDescription
nodesNetworkNode[]—Node positions, labels, sizes, and colors
edgesNetworkEdge[]—Edges between nodes with optional weight
widthnumber500SVG width
heightnumber400SVG height

Token integration

CSS VariablePurpose
--s-primaryDefault node fill color
--s-borderEdge stroke
--s-text-mutedNode labels
--s-font-monoLabel font family