affectUI › Illustrations › Card illustrations
Agent Team
A prompt types itself and branches out into three agents, each with a role and overlapping tool logos.
Free and open source (MIT). Install: npx shadcn@latest add https://www.affectui.com/r/agent-team.json · Import from @/components/ui/agent-team
When to use
- AI and automation products where one prompt sets up several agents or roles
- Feature cards about teams, delegation or workflows that span several tools
When not to use
- Real org charts or live agent status – the scene is decorative and loops on its own
- More than three agents – the layout is built for exactly three
Usage
import { AgentTeam } from "@/components/ui/agent-team";
export function FeatureCard() {
return (
<article style={{ maxWidth: 560 }}>
<AgentTeam
prompt="Build a team to work my inbound pipeline"
members={[
{ role: "Lead Researcher", avatar: "/team/lena.jpg", tools: ["linkedin", "hubspot"] },
{ role: "Inbound Qualifier", avatar: "/team/theo.jpg", tools: ["hubspot", "slack"] },
{ role: "Outbound SDR", avatar: "/team/noah.jpg", tools: ["gmail", "salesforce"] },
]}
/>
</article>
);
}Props
| Name | Type | Default | Description |
|---|---|---|---|
prompt | string | "Build a team to work my inbound pipeline" | Text that types itself into the prompt pill |
members | [AgentTeamMember, AgentTeamMember, AgentTeamMember] | Required. Three agents, left to right – { role, avatar, tools? } with up to two of linkedin, hubspot, slack, gmail, salesforce | |
label | string | Accessible description – by default built from the prompt and the roles | |
className | string | Extra class on the root, e.g. for width or margins |
Accessibility
- Exposed as one image with a label built from the prompt and the roles; everything inside is hidden from screen readers
- Nothing in the scene is interactive
Responsive
- Transparent background, so it sits on any light or dark surface
- Keeps a 3 : 2 aspect ratio and scales to the width of its container – text and shapes are sized in container units
- Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
Requirements
- React 19