Recent Activity

Overview

An activity feed card that lists agent runs with duration and recency chips.

This data component is intended for interfaces that need an activity feed card that lists agent runs with duration and recency chips, analytics dashboards, and reporting views. Its implementation is provided as editable source so the final behavior and styling stay inside your project.

Technologies

React
TypeScript
Tailwind CSS
Motion

Detected package dependencies: motion, lucide-react.

@spectrumui/recent-activity

Recent Activity

Personalized Email15s
Peer Review
Content Drafting
Admin Approval
Weekly Campaign Report2m
SEO Audit5m
Price Monitoring Agent
Research2m
Social Media Manager25S
Sales Representative25S
Customer Support25S
Quality Assurance25S
Frontend Developer25S
Backend Developer25S
Project Manager25S

Installation

Login to view commandCreate a free account to access the install command

Usage

import { RecentActivity } from "@/components/spectrumui/recent-activity"
<RecentActivity
  title="Recent Activity"
  items={[
    { title: "Peer Review", duration: "15s", description: "Reviewed and approved 3 pull requests", timeAgo: "30H" },
    { title: "SEO Audit", duration: "5m", description: "Checked 50 web pages for issues", timeAgo: "12H" },
  ]}
/>

API Reference

RecentActivity

A framed card with a titled header and one row per item. Rows fade in as they scroll into view. The duration chip sits next to the title and the recency chip is right-aligned; both are optional.

PropTypeDefaultDescription
items{ icon?: ReactNode; title: string; duration?: string; description: string; timeAgo?: string }[]-Rows to render, top to bottom
titlestring"Recent Activity"Header text
titleIconReactNode-Icon rendered before the title; defaults to a workflow glyph
classNamestring-Additional classes merged with the root styles

Use cases

  • interfaces that need an activity feed card that lists agent runs with duration and recency chips
  • analytics dashboards
  • reporting views

Features

  • Copy-paste source that remains in your repository
  • TypeScript source included with the component
  • Tailwind CSS classes editable in the component source
  • Animation implemented with Motion
  • Responsive Tailwind variants present in the source

Accessibility

  • No reduced-motion marker was detected; add or verify a reduced-motion path before production use.
  • Test focus order, keyboard operation, labels, contrast, and screen-reader output in the final application context.

Customization

  • Edit the Tailwind utility classes in the copied source to match your spacing, color, and typography tokens.
  • Use the documented className surface for local layout adjustments, then edit the source for structural changes.
  • Adjust Motion transitions in the source and keep the reduced-motion behavior aligned with the final interaction.

Recent Activity FAQ

Is Recent Activity free to use in commercial projects?

Yes. The public Recent Activity source is available under the Apache License 2.0, including for commercial use, subject to the LICENSE terms.

How do I install Recent Activity?

Run npx shadcn@latest add @spectrumui/recent-activity. The page also exposes the source for manual installation.

Does Recent Activity require Motion?

Yes. Motion usage was detected in the documented source or registry dependencies for Recent Activity.

Does Recent Activity use shadcn/ui or Radix UI?

No shadcn/ui or Radix UI dependency was detected in the documented Recent Activity source.

Can I use Recent Activity in Next.js?

The documented React source is used in this Next.js application. Keep its use client directive when copying it into the App Router. Install the detected dependencies and verify any application-specific data or image configuration.

What accessibility checks should I run for Recent Activity?

No component-specific accessibility mechanism was detected automatically. Test keyboard operation, focus, labels, contrast, and screen-reader output before shipping.

Work with me