Radial Flow

RadialFlow renders a hub-and-spoke diagram: a central hub card surrounded by node cards, joined by curved SVG links along which glowing pulses travel. It is a presentational visualization for showing how a core system connects to its services.

Radial Flow
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @glint-ui/radial-flow

Requires @glint-ui in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { RadialFlow } from "@/components/ui/radial-flow";export function Example() {  return (    <RadialFlow      hub={{ label: "Core API" }}      nodes={[{ label: "Auth" }, { label: "Payments" }, { label: "Storage" }]}    />  );}
  • Explaining a hub-and-spoke architecture such as a central API gateway, platform core, or orchestrator and its connected services.
  • Showing data or event flow between one central system and several peers in a landing page hero or feature section.
  • Adding an animated, sci-fi or tech-styled network illustration where a static diagram would feel flat.
  • Illustrating integrations (for example, a product connected to CRM, billing, email and analytics) with a clear direction of flow.

Examples

Platform integrations with icons and hints

A hub connected to four services, each with an icon from lucide-react and a hint line. Uses inward flow so data appears to converge on the hub.

platform-integrations-with-icons-and-hints.tsx
import { Database, Mail, CreditCard, BarChart3 } from "lucide-react";import { RadialFlow } from "@/components/ui/radial-flow";export function IntegrationsDiagram() {  return (    <RadialFlow      hub={{ label: "Glint Core", icon: <Database /> }}      direction="in"      nodes={[        { label: "Billing", hint: "Stripe webhooks", icon: <CreditCard /> },        { label: "Email", hint: "Transactional mail", icon: <Mail /> },        { label: "Analytics", hint: "Event stream", icon: <BarChart3 /> },        { label: "Warehouse", hint: "Nightly sync", icon: <Database /> },      ]}    />  );}

Custom accent color and slower pulses

Overrides the accent color, lengthens the pulse travel time, adds a second pulse per link and bows the links more strongly.

custom-accent-color-and-slower-pulses.tsx
import { RadialFlow } from "@/components/ui/radial-flow";export function SlowAmberFlow() {  return (    <RadialFlow      hub={{ label: "Scheduler" }}      accent="#f59e0b"      duration={4}      pulses={2}      curvature={0.3}      nodes={[        { label: "Workers", hint: "3 active" },        { label: "Queue", hint: "Redis" },        { label: "Cron" },        { label: "Retries" },      ]}    />  );}

Outbound-only fan-out with a size constraint

Data flows only outward from the hub, and the component is constrained by a wrapper width via className.

outbound-only-fan-out-with-a-size-constraint.tsx
import { RadialFlow } from "@/components/ui/radial-flow";export function BroadcastFlow() {  return (    <div className="mx-auto max-w-md">      <RadialFlow        className="max-w-none"        hub={{ label: "Publisher" }}        direction="out"        nodes={[{ label: "Web" }, { label: "Mobile" }, { label: "Partners" }]}      />    </div>  );}

API reference

PropTypeDefaultDescription
hub{ label: string; icon?: ReactNode }—Required. The center node. label is shown in bold below the icon; icon is optional and rendered in a gradient tile.
nodesRadialFlowNode[]—Required. Nodes placed evenly on an ellipse around the hub. Each item is { label: string; icon?: ReactNode; hint?: string }. label is also used as the React key, so labels should be unique.
accentstring"#a3e635"CSS color used for pulses, hover highlight, hub border and glow. Any valid CSS color string works.
durationnumber2.6Seconds for one pulse to travel a link.
pulsesnumber1Pulses in flight per link. The value is rounded and clamped to the range 1 to 4.
direction"in" | "out" | "both""both"Direction data flows along links. "in" flows toward the hub, "out" flows away from it, and "both" alternates direction per link.
curvaturenumber0.18How much each link bows, as a fraction of its length. 0 gives straight-looking spokes.
classNamestring—Extra classes merged onto the root container via cn(). The root already sets aspect-[16/9], w-full and max-w-[44rem], so override these with classes such as max-w-none if needed.

Accessibility

  • The SVG containing the links and pulses is marked aria-hidden, so screen readers ignore the decorative animation.
  • Node labels and hints are real text inside list items, so they are read out. Icons inside nodes and the hub are aria-hidden, so supply the meaning through the label text.
  • Each node is a focusable list item (tabIndex 0). Focusing a node highlights its link the same way hovering does, giving keyboard users the same feedback, and the focus ring uses the ring token.
  • The hub is rendered as plain text in a div and is not a list item. If the hub's relationship to nodes matters, add context in surrounding text or an aria-label on a wrapping element.
  • The list has no accessible name by default. Wrap the component in a region with an aria-label or add a heading that describes the diagram.
  • Under prefers-reduced-motion, pulses and ring animations are hidden and link draw-in and node pop-in animations are disabled, so the static diagram remains.
  • Animations pause automatically when the diagram scrolls out of view, which reduces background motion.
  • Relying on color alone to show hover state is a weakness; the border and shadow change too, but consider including the information in the label text if the diagram conveys critical data.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Radial Flow" component (glint-ui/radial-flow) from its shadcn registry.1. Install it with: npx shadcn@latest add @glint-ui/radial-flow2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: hub, nodes, accent, duration, pulses, direction, curvature, className.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { RadialFlow } from "@/components/ui/radial-flow";export function Example() {  return (    <RadialFlow      hub={{ label: "Core API" }}      nodes={[{ label: "Auth" }, { label: "Payments" }, { label: "Storage" }]}    />  );}```

Files & dependencies

  • registry/ui/radial-flow.tsx
registryDependenciesutils

Looks similar, elsewhere