Forms
Navigation & layout
Data display & feedback
Date & time
Browse components
← All components
Agent Activity
Expandable reasoning, search, code, and tool traces.
Install
npx shadcn@latest add https://ui.anuragroy.dev/r/agent-activity.jsonPreview
Loading preview…
Installation
Add the component from this site. The shadcn CLI fetches the registry JSON over HTTPS — no named registry submission required.
Terminal
npx shadcn@latest add https://ui.anuragroy.dev/r/agent-activity.jsonGitHub fallback if the website is down:
Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/agent-activity.jsonUsage
Import paths follow your components.json aliases. After install, the default path is @/components/ui/agent-activity.
Import
import { AgentActivity, AgentActivityContent, AgentActivityItem, AgentActivityMeta, AgentActivityTrigger} from "@/components/ui/agent-activity"example.tsx
import { AgentActivity, AgentActivityContent, AgentActivityItem, AgentActivityMeta, AgentActivityTrigger,} from "@/components/ui/agent-activity"export function Example() { return ( <AgentActivity> <AgentActivityItem kind="thinking" status="completed"> <AgentActivityTrigger kind="thinking"> Reasoning <AgentActivityMeta>1.2s</AgentActivityMeta> </AgentActivityTrigger> <AgentActivityContent> Grouping KPIs is the highest-leverage change. </AgentActivityContent> </AgentActivityItem> </AgentActivity> )}API Reference
AgentActivityItem
| Prop | Type | Default |
|---|---|---|
| kind | "thinking" | "search" | "code" | "tool" | "thinking" |
| status | "pending" | "running" | "completed" | "failed" | "completed" |
| defaultOpen | boolean | — |