Block
Activity Feed
Recent workspace activity on a timeline rail.
react-aria-componentslucide-react
Preview
Recent activity
Across your workspace
- Priya Raman replied to “Quick question about Fathom’s SDR ramp”12 min ago · Series B — VP Sales
- Meeting booked with Elena Vasquez for Thu, Sep 171h ago · Marco Silva
- 24 prospects enriched · 22 verified emails2h ago · Enrichment
- “UK Revenue Leaders” started for 12 prospects3h ago · Leah Moss
- AI found 38 new matches for “Series B — VP Sales”7:00 AM · Saved search
import { ActivityFeed } from "@/components/blocks/activity-feed";
export default function Example() {
return <ActivityFeed className="w-full max-w-sm" />;
}Installation
Components are copied into your project — no runtime package.
Install the following dependencies:
terminalnpm install react-aria-components lucide-reactCreate a
activity-feed.tsxfile 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> ); }Add the theme tokens and the
cxhelper from Installation if you haven’t yet, then update the import paths to match your project setup.