The agents available for a task, each showing its name, role and live status.
Loading demo: agent-card-real-world
npx sdaia-ui@latest add agent-card
import { AgentCard } from '@/components/ui/AgentCard';1<AgentCard2variant="brand"3name="Compliance_Guard_Agent"4role="Cross-border legal auditing and systemic policy constraint validation"5status="Active"6/>
A raised surface — the default style.
Loading demo: agent-card-brand
A subtle surface.
Loading demo: agent-card-neutral
A transparent surface with a default border.
Loading demo: agent-card-outline
Toggle the role line and the status (dot + badge).
Loading demo: agent-card-toggles
Prop | Type | Default | Required |
|---|---|---|---|
variant | 'brand' | 'neutral' | 'outline' | 'brand' | optional |
name | ReactNode | — | required |
role | ReactNode | — | optional |
showRole | boolean | true | optional |
status | ReactNode | labels.status ('Active') | optional |
statusColor | BadgeColor | 'primary' | optional |
statusDot | StatusDotStatus | 'online' | optional |
showStatus | boolean | true | optional |
labels | Partial<AgentCardLabels> | — | optional |
dir | 'ltr' | 'rtl' | — | 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 the width of its container: a 40px avatar next to the name and role. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Same layout with the mobile token values. The avatar keeps its size and long names and roles wrap. |