A live timeline that shows an AI agent's work step by step — thinking shimmer while running, then a collapsible summary.
Steps
Streams type: "step" rows while status="working". Replay remounts the cycle.
Loading…
Installation
CLI
Also needs
npx @sonojs/ui@latest add agent-disclosure && npm i lucide-react motionUsage
agent-activity.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | AgentActivityItem[] | — | Chronological activity entries (step, text, search, tool, trace). |
| status | "working" · "complete" | "working" | Working always stays expanded; complete can collapse. |
| duration | number | 0 | Elapsed seconds for the step/text summary. |
| open | boolean | uncontrolled | Controlled expanded state after complete. |
| defaultOpen | boolean | false | Initial open state when complete. |
| collapseOnComplete | boolean | true | Collapse when status flips from working to complete. |
| activeLabel | ReactNode | derived | Shimmer label while working. |
| summary | ReactNode | derived | Completed trigger label. |
| maxHeight | number | 208 | Max viewport height before the stream glides. |