sigilUI

Orbit Diagram

A circular orbit layout with a center node, surrounding orbital nodes, and optional segment labels.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

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

Usage

<OrbitDiagram
  center={{ label: "Core" }}
  nodes={[
    { label: "Auth" },
    { label: "Storage" },
    { label: "Compute" },
    { label: "Network" },
  ]}
/>

With icons and labels

<OrbitDiagram
  size={320}
  center={{ label: "Platform", icon: <CpuIcon /> }}
  nodes={[
    { label: "API", icon: <GlobeIcon /> },
    { label: "DB", icon: <DatabaseIcon /> },
    { label: "Cache", icon: <ZapIcon /> },
  ]}
  labels={["Read", "Write", "Evict"]}
/>

Props

PropTypeDefaultDescription
center{ label, icon? }—Center node (required)
nodesOrbitNode[]—Array of { label, icon? } on the orbit ring (required)
sizenumber260Diagram diameter in pixels
labelsstring[][]Segment labels between orbit nodes
classNamestring—Additional CSS classes

Plus all standard <div> HTML attributes.