Notification Item

A single notification row with an unread dot and tint, a truncated title, relative time and a short body line. Stack it in React inboxes and activity feeds.

src/registry/ui/notification-item.tsx/r/notification-item.json

Installation#

bash
npx shadcn@latest add @minidev/notification-item

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/notification-item.json

Usage#

tsx
import { NotificationItem } from "@/components/ui/notification-item"

export function Example() {
  return <NotificationItem />
}

API reference#

NotificationItem props
PropTypeDefault
titlestring"Invoice INV-2041 paid"
bodystring"Northwind paid $12,400.00 by bank tr...
datestring | Date-
unreadboolean-
classNamestring-

Dependencies#

npm

React only

Built from

All alerts, toasts and empty states