Skip to content
Twentyfirst UIHalo

Agent Network

AI · AgentNetwork, Panel, Button

View as Markdown

The hierarchy of a multi-agent system as a live graph: the orchestrator at the top, a lead per project or team below it and the agents that do the work under each lead.

  • Each node shows name, project, status (the kit's status shapes: idle, running, signal = waiting for approval, warn, danger, ok) and a beacon with the number of open approvals.
  • handoffs come from your event stream ({ id, from, to, label }): every new id sends a small packet along the edges, up to the shared lead and down to the receiver. Screen readers hear "A handed … to B". With reduced motion (or UIProvider motion="off") the receiver is marked for a moment instead.
  • Click a node for its details card with detail, renderDetails and a link (href, linkAs or UIProvider linkAs). selected/onSelect make the selection controlled.
  • Drag to pan, pinch or Ctrl/⌘ + wheel to zoom, the buttons zoom and fit. Narrower than 560px (or layout="list") it is an indented list instead of a graph.

Agents

Shop leadNorthwind Shop
Waiting for approval2 approvals waiting
Waits for a refund of €40 and a new ad budget.
Open

Props

AgentNetwork

PropTypeNotes
rootAgentNetworkNodeThe orchestrator, with its leads and their agents as children.
handoffs?AgentNetworkHandoff[]Handoffs from your event stream; each new id animates a packet from `from` to `to`.
animateInitial?booleanAlso animates the handoffs present at mount (default: only later ones).
layout?"auto" | "graph" | "list""auto" (default): the graph, or a list when narrower than 560px.
height?numberHeight of the graph viewport (default 440).
selected?string | nullSelected node id (controlled); `null` for none.
defaultSelected?string | null
onSelect?(node: AgentNetworkNode | null) => void
renderDetails?(node: AgentNetworkNode) => ReactNodeMore content for the details card of the selected node.
openLabel?stringText of the details card's link (default "Open").
label?stringAccessible name of the graph (default "Agent network").
linkAs?ElementType
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Panel

PropTypeNotes
side?boolean
title?string
subtitle?string
action?ReactNode
children?ReactNode
surface?Surface`"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`.
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Button

PropTypeNotes
variant?"primary" | "secondary" | "soft" | "ghost" | "danger" | "danger-solid"
size?"md" | "sm"
icon?IconName
iconRight?IconName
disabled?boolean
type?"button" | "submit" | "reset"
onClick?(e: MouseEvent<HTMLButtonElement>) => void
children?ReactNode
asChild?booleanRender the single child element (a link, a router Link) with the button's look instead of a <button>.
id?string
name?stringForm field name and value, sent with the form when this button submits it.
value?string
form?stringThe id of the form this button belongs to, when it sits outside it.
title?string
tabIndex?number
autoFocus?boolean
aria-label?string
aria-labelledby?string
aria-describedby?string
aria-expanded?boolean | "true" | "false"For disclosure and menu triggers: whether what the button controls is open.
aria-controls?string
aria-haspopup?boolean | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog"
aria-pressed?boolean | "true" | "false" | "mixed"For toggle buttons.
aria-current?boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.