Agent Relay
ProNewRoute 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
| Prop | Type | Default |
|---|---|---|
| request* | stringRequest shown at the inlet of the routing diagram. | — |
| routes* | Route[]Specialists available to handle the request. | — |
| onRoute | (id: string) => voidCalled with the destination ID after a route is chosen. | — |
Accessibility
- Named buttons expose the selected route. The circuit draws instantly under reduced motion.