affectUI › Illustrations › Product scenes

Inspect Agent Card

An agent card seen like a selection in a design tool – tilted back, with a blue frame, spacing numbers and a red guide walking through its rows.

Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/inspect-agent-card.json · Import from @/components/ui/inspect-agent-card

When to use

  • Hero or feature section of a UI kit, design tool or developer product – it shows that the interface is built with care, down to the pixel
  • Beside a headline, one on each side: use mirror for the left one and give them different delays, so they take turns
  • Launch posts and OG images – a still frame with playing={false} reads well small

When not to use

  • As the real interface – it's a picture of one; nothing in it can be clicked
  • In tight spaces – it needs about 400 × 330px, and its fades want room around it

Usage

import { InspectAgentCard } from "@/components/ui/inspect-agent-card";

export function Hero() {
  return (
    <section className="relative">
      <h1>UI for AI agents</h1>
      <InspectAgentCard className="absolute right-0 top-24" />
    </section>
  );
}

Props

NameTypeDefaultDescription
agentInspectAgentThe card: name, model, avatar, tools, task, status ("running" | "done"), cost and time
aboveInspectAgent | nullThe card faded out above it – null leaves it out
playingbooleantrueWalks the selection through the rows – false holds it on the header
holdnumber1600How long the selection stays on a row, in ms
delaynumber600Wait before the first selection, in ms – e.g. until the section around it has come in
mirrorbooleanfalseTilted the other way and fading out to the left, the edge marks on the right – for the left side of a layout
flatbooleanfalseNo tilt
classNamestringExtra class on the root

Accessibility

  • Decorative: the whole illustration is hidden from screen readers and takes no clicks
  • With prefers-reduced-motion nothing moves: the selection stands still on the header

Responsive

  • Fixed size, about 400 × 330px with its fades – scale it with zoom or a transform for smaller screens
  • Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"

Requirements

  • React 19

Related

  • Agent Tree – Who started whom – an orchestrator and its sub-agents as a live tree, with status, cost and time on every card, costs rolling up each branch, and branches that fold to one line
  • Inspect Composer – A chat composer seen like a selection in a design tool – tilted back, with a blue frame, spacing numbers and a red guide walking through its rows
  • Agent Team – A prompt types itself and branches out into three agents, each with a role and overlapping tool logos