Recent Activity
A sidebar widget that lists recent activity items with a "More" link.
RecentActivity renders a compact list of recent activities (up to 2) with timestamps and a configurable "More" link. Pass your own activities array to populate it from any data source.
Installation
npx shadcn@latest add @adv/recent-activityUsage
import { RecentActivity } from '@/components/sidebar/RecentActivity';
const activities = [
{ id: '1', title: 'Shipped new feature', time: '1 hour ago' },
{ id: '2', title: 'Updated design tokens', time: 'Yesterday' },
];
<RecentActivity activities={activities} moreHref="/activities" />Example
RECENT ACTIVITY
Published new blog post on design systems
1 hour ago
Shipped sidebar component to registry
3 hours ago
Props
| Prop | Type | Default | Description |
|---|---|---|---|
activities | Activity[] | 2 sample items | Array of activity items to display (first 2 shown). |
moreHref | string | "/activities" | href for the "MORE →" link at the bottom. |
Activity type
export interface Activity {
id: string;
title: string;
time: string;
}Sidebar
A fixed sidebar composer with header, navigation, recent activity, and footer — decoupled from app data and animation context.
Media Viewer
A full-screen media viewer with zoom controls, image/prototype tabs, annotation pins, inline comments, a resizable details panel, and an optional GSAP open/close transition.