Adventureland Registry

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-activity

Usage

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

MORE →

Props

PropTypeDefaultDescription
activitiesActivity[]2 sample itemsArray of activity items to display (first 2 shown).
moreHrefstring"/activities"href for the "MORE →" link at the bottom.

Activity type

export interface Activity {
  id: string;
  title: string;
  time: string;
}

On this page