Componentfeedback0.85 KB gzipZero dependencies

Notification Feed

Full-page notification feed with type icons and read states.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add notification-feed

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { NotificationFeed } from "@/components/ui/notification-feed"; <NotificationFeed />

Source code

notification-feed.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxnotification-feed.tsx73 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface Notification {  id: string;  title: string;  body?: string;  time: string;  type?: "info" | "success" | "warning" | "error";  unread?: boolean;} export interface NotificationFeedProps extends React.HTMLAttributes<HTMLDivElement> {  notifications: Notification[];  onMarkRead?: (id: string) => void;}

Props

PropTypeDescription
notificationsNotification[]Configures notifications. (Default: [])
onMarkRead(id: string) => voidCallback invoked on mark read.