Saurabh

Agent Activity

AI chats 26

About

An adaptive activity stream that shows an AI agent's reasoning, tool calls, web searches, or execution steps as a collapsible, animated timeline.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Agent Activity to your project and fits it to your theme.

Code

How Agent Activity is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import AgentActivity, {
  type AgentActivityItem,
} from "@/components/ui/agent-activity";

const STEPS: AgentActivityItem[] = [
  {
    id: "brief",
    type: "step",
    label: "Reading the product brief",
    status: "complete",
  },
  {
    id: "patterns",
    type: "step",
    label: "Mapping the interaction patterns",
    status: "complete",
  },
  {
    id: "states",
    type: "step",
    label: "Connecting the loading and completion states",
    status: "complete",
    meta: "3 states",
  },
  {
    id: "verify",
    type: "step",
    label: "Verifying the final behavior",
    status: "active",
  },
];

export default function AgentActivityDemo() {
  return (
    <div className="w-full max-w-lg">
      <AgentActivity
        items={STEPS}
        status="working"
        contentType="step"
        duration={4.2}
        maxHeight={220}
      />
    </div>
  );
}

Dependencies

More by Saurabh

View all
  • BeUI Tilt Card

    BeUI Tilt Card

    374
  • BeUI Expandable Tabs

    BeUI Expandable Tabs

    351
  • BeUI File Upload

    BeUI File Upload

    296
  • BeUI Bouncy Accordion

    BeUI Bouncy Accordion

    206
  • Animated Sidebar

    Animated Sidebar

    200
  • BeUI Create Menu

    BeUI Create Menu

    199
  • BeUI Expanable Action Bar

    BeUI Expanable Action Bar

    194
  • Loader

    Loader

    187

More in AI chats

View all
  • AI Actions

    AI Actions

    326
  • Agent Chat

    Agent Chat

    18
  • Message Thread

    Message Thread

    45
  • Attachments

    Attachments

    22
  • Color Picker

    Color Picker

    110
  • Environment Variables

    Environment Variables

    14
  • System Message

    System Message

    58
  • AI Diff

    AI Diff

    74

Explore more

Part of beUi — browse the full library on 21st.dev.