sigilUI

Hub Route Diagram

A source-to-hub routing diagram that fans out to categorized left and right target groups.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

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

Usage

<HubRouteDiagram source={{ label: "Application" }} hub={{ label: "Gateway", layers: [{ label: "Authenticate" }, { label: "Route" }, { label: "Observe" }] }} leftTargets={[{ label: "Database" }, { label: "Storage" }]} rightTargets={[{ label: "Search" }, { label: "Events" }]} />

Props

PropTypeDefaultDescription
source{ label, icon? }—Source node (required)
hub{ label, layers: HubRouteLayer[] }—Central hub with internal layers (required)
leftTargetsHubRouteNode[]—Array of { label, icon? } for left group (required)
rightTargetsHubRouteNode[]—Array of { label, icon? } for right group (required)
leftLabelstring—Category label above left targets
rightLabelstring—Category label above right targets
classNamestring—Additional CSS classes

Plus all standard <div> HTML attributes.