Componentfeedback0.85 KB gzipZero dependencies
Notification Feed
Full-page notification feed with type icons and read states.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add notification-feedOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { NotificationFeed } from "@/components/ui/notification-feed"; <NotificationFeed />Source code
notification-feed.tsx + 1 helperZero 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
| Prop | Type | Description |
|---|---|---|
| notifications | Notification[] | Configures notifications. (Default: []) |
| onMarkRead | (id: string) => void | Callback invoked on mark read. |