Notification Bell

Dropdown notification center with unread badges, actions, and clear all functionality.

Preview

Usage

import { NotificationBell } from "@/components/profile"

<NotificationBell
  notifications={[
    { id: "1", type: "like", title: "New likes", message: "150 new likes", timestamp: "2m ago", isRead: false },
    { id: "2", type: "follow", title: "New follower", message: "A user followed you", timestamp: "1h ago", isRead: true },
  ]}
  onMarkAsRead={(id) => markRead(id)}
  onMarkAllRead={() => markAllRead()}
  onDelete={(id) => deleteNotification(id)}
  onClear={() => clearAll()}
/>

Notification Types

like
follow
comment
purchase
mention
system

Props

PropTypeDescription
notificationsNotificationItem[]Array of notifications
onMarkAsRead(id) => voidMark single as read
onMarkAllRead() => voidMark all as read
onDelete(id) => voidDelete notification
onClear() => voidClear all