About
A bell button with an unread badge that opens a notification panel. Groups items into Today and Earlier, filters All or Unread, and supports mark all as read, dismiss, Esc to close and full keyboard focus handling.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Notification Center to your project and fits it to your theme.
Code
How Notification Center is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
// This is a file with a demo for your component
// That's what users will see in the preview
// Create new files in this directory to add more demos
"use client";
import * as React from "react";
import { Layers } from "lucide-react";
import { Component, type NotificationItem } from "@/components/ui/notification-center";
export default function DemoOne() {
const [clicked, setClicked] = React.useState("");
return (
<div className="flex min-h-[560px] w-full flex-col bg-background text-foreground">
{/* A pretend app header, so the panel opens where people expect it */}
<header className="flex h-16 items-center justify-between border-b border-border bg-card px-4 sm:px-8">
<div className="flex items-center gap-2.5">
<span className="grid size-8 place-items-center rounded-lg bg-primary text-primary-foreground">
<Layers className="size-4" aria-hidden="true" />
</span>
<span className="text-sm font-semibold">Northwind</span>
</div>
<Component onNotificationClick={(n: NotificationItem) => setClicked(n.title)} />
</header>
<main className="flex flex-1 items-center justify-center px-4 py-10">
<p className="max-w-sm text-center text-sm text-muted-foreground" role="status">
{clicked ? "You opened: " + clicked : "Click the bell to open your notifications."}
</p>
</main>
</div>
);
}








