Skip to content

    Browse components

    Radial Flow

    A hub-and-spoke diagram where glowing data pulses stream along curved links between a central node and its connected services.

    Open
    Customize

    both
    in
    out

    Installation

    npx shadcn@latest add @glint-ui/radial-flow

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/radial-flow.json

    Usage

    import { RadialFlow } from "@/components/ui/radial-flow";
    
    <RadialFlow
      hub={{ label: "API Gateway", icon: <Zap /> }}
      nodes={[
        { label: "Postgres", hint: "Primary DB", icon: <Database /> },
        { label: "Stripe", hint: "Payments", icon: <CreditCard /> },
      ]}
    />

    Props

    PropTypeDefaultDescription
    hubReactNode—Center node: { label, icon? }.
    nodesReactNode—Array of { label, icon?, hint? } placed around the hub.
    accentstring"#a3e635"Pulse and highlight color.
    durationnumber2.6Seconds for one pulse to travel a link.
    pulsesnumber1Pulses in flight per link.
    direction"both" | "in" | "out""both"Which way data flows; both alternates per link.
    curvaturenumber0.18How much links bow, as a fraction of their length.
    classNamestring—Extra classes for the root element.