A task moving from one agent to the next, with a label explaining why the work was passed on — across Brand, Neutral, and Outline styles.
Loading demo: agent-handoff-real-world
npx sdaia-ui@latest add agent-handoff
import { AgentHandoff } from '@/components/ui/AgentHandoff';1<AgentHandoff2variant="brand"3source={{ label: 'Source Agent', name: 'Software_Engineer_Bot' }}4destination={{ label: 'Destination Agent', name: 'Code_Sandbox_Compiler' }}5label="Delegating Task"6/>
A brand-tinted surface with a brand border and brand-coloured agent icons — the default style.
Loading demo: agent-handoff-brand
A subtle surface with a subtle border and neutral agent icons.
Loading demo: agent-handoff-neutral
A transparent surface with a default border and neutral agent icons.
Loading demo: agent-handoff-outline
Hide the connector pill with showLabel={false} — leaving just the directional arrow between the two agents.
Loading demo: agent-handoff-without-label
Prop | Type | Default | Required |
|---|---|---|---|
variant | 'brand' | 'neutral' | 'outline' | 'brand' | optional |
source | AgentHandoffAgent | — | required |
destination | AgentHandoffAgent | — | required |
label | ReactNode | labels.connector ('Delegating Task') | optional |
showLabel | boolean | true | optional |
arrowIcon | string | arrowRight02Stroke | optional |
dir | 'ltr' | 'rtl' | — | optional |
labels | Partial<AgentHandoffLabels> | — | optional |
as | ElementType | 'div' | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Fills its container: the two agent chips sit side by side with an arrow between them. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | From 640px the chips stay side by side. Below 640px they stack vertically and the arrow turns to point down. Long agent names are truncated. |