What's happening around you
Sarah sent you a message.
You've unlocked a new achievement.
Your team meeting starts in 30 minutes.
Save 20% off on subscription upgrade.
A new task is awaiting your action.
pnpm dlx shadcn@latest add @gammaui/activity-dropdown
import { ActivityDropdown } from "@/components/ui/activity-dropdown"
export default function Example() {
return (
<div className="p-4">
<ActivityDropdown />
</div>
)
}This renders a fully animated notification dropdown with smooth transitions and staggered item animation.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | Add custom Tailwind classes to the wrapper. |
| ...props | React.HTMLAttributes<HTMLDivElement> | — | Pass additional DOM attributes. |
interface Activity {
id: number
icon: React.ReactNode
iconBg: string
title: string
description: string
time: string
}import { ActivityDropdown } from "@/components/ui/activity-dropdown"
const customActivities = [
{
id: 99,
icon: <IconStar className="h-4 w-4" />,
iconBg: "bg-yellow-500/20",
title: "Premium Feature Unlocked",
description: "You now have access to all premium tools.",
time: "1 min ago",
},
]
export default function Example() {
return <ActivityDropdown activities={customActivities} />
}transitionDelay.