Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Agent Relay

ProNew

Route a request between specialists and follow the signal through a branching circuit.

Installation

pnpm dlx shadcn@latest add @viewport/agent-relay

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
request*string

Request shown at the inlet of the routing diagram.

—
routes*Route[]

Specialists available to handle the request.

—
onRoute(id: string) => void

Called with the destination ID after a route is chosen.

—

Accessibility

  • Named buttons expose the selected route. The circuit draws instantly under reduced motion.