Block

Activity Feed

Recent workspace activity on a timeline rail.

react-aria-componentslucide-react

Preview

Recent activity

Across your workspace

  1. Priya Raman replied to “Quick question about Fathom’s SDR ramp”
    12 min ago · Series B — VP Sales
  2. Meeting booked with Elena Vasquez for Thu, Sep 17
    1h ago · Marco Silva
  3. 24 prospects enriched · 22 verified emails
    2h ago · Enrichment
  4. “UK Revenue Leaders” started for 12 prospects
    3h ago · Leah Moss
  5. AI found 38 new matches for “Series B — VP Sales”
    7:00 AM · Saved search

Installation

Components are copied into your project — no runtime package.

  1. Install the following dependencies:

    terminal
    npm install react-aria-components lucide-react
  2. Create a activity-feed.tsx file and paste the following code into it.

    src/components/blocks/activity-feed.tsx
    "use client";
    
    import { Activity, CalendarCheck, CornerUpLeft, MoreHorizontal, Send, Sparkles, Zap } from "lucide-react";
    import { Card, CardBody, CardHeader, IconTile } from "@/components/ui/card";
    import { IconButton } from "@/components/ui/icon-button";
    import { Timeline, type TimelineItem } from "@/components/ui/timeline";
    
    const defaultItems: TimelineItem[] = [
      { id: "1", icon: <CornerUpLeft />, title: "Priya Raman replied to “Quick question about Fathom’s SDR ramp”", meta: "12 min ago · Series B — VP Sales" },
      { id: "2", icon: <CalendarCheck />, title: "Meeting booked with Elena Vasquez for Thu, Sep 17", meta: "1h ago · Marco Silva" },
      { id: "3", icon: <Zap />, title: "24 prospects enriched · 22 verified emails", meta: "2h ago · Enrichment" },
      { id: "4", icon: <Send />, title: "“UK Revenue Leaders” started for 12 prospects", meta: "3h ago · Leah Moss" },
      { id: "5", icon: <Sparkles />, title: "AI found 38 new matches for “Series B — VP Sales”", meta: "7:00 AM · Saved search" },
    ];
    
    /** Recent workspace activity on a timeline rail. */
    export function ActivityFeed({ items = defaultItems, className }: { items?: TimelineItem[]; className?: string }) {
      return (
        <Card className={className}>
          <CardHeader
            icon={
              <IconTile tone="teal">
                <Activity />
              </IconTile>
            }
            title="Recent activity"
            description="Across your workspace"
            actions={
              <IconButton size="sm" aria-label="Activity options">
                <MoreHorizontal />
              </IconButton>
            }
          />
          <CardBody className="p-4">
            <Timeline items={items} />
          </CardBody>
        </Card>
      );
    }
  3. Add the theme tokens and the cx helper from Installation if you haven’t yet, then update the import paths to match your project setup.