Notification Panel
Grouped, filterable, and it knows the difference between read and seen.
PROGet Notification Panel and 168 other Pro components with pro lifetime — Get Pro
- Category
- Productivity
- Access
- ProPro · unlocked
- Source
- 840 lines · one file
When to use it
Use Notification Panel for an inbox of notifications: unread and following tabs, mentions and requests with inline actions, archive and mark all read.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Liro's Notification Panel for this.
Install it: npx shadcn@latest add @liro/notification-panel
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/notification-panel.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @liro registry with your CLI token: see the Namespaced tab.
Usage
import { NotificationPanel, type NotificationItem } from "@/components/ui/notification-panel";
const items: NotificationItem[] = [
{
id: "1",
actor: { name: "Ada Moss" },
kind: "request",
body: ["asked for access to ", { entity: "Vertically MSA" }],
time: "5m",
unread: true,
actions: [{ id: "approve", label: "Approve", tone: "primary", resolved: "Approved" }],
},
];
export function Notifications({ act }: { act: (id: string, action: string) => void }) {
return <NotificationPanel items={items} onAction={(item, actionId) => act(item.id, actionId)} />;
}API reference
“Copy prompt” above puts a full brief on your clipboard, install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLiro foundations, installed alongside it
liro-themeAccessibility
- Keyboard reachable throughout, in visual order
- Focus trapped in overlays, Escape closes them
- Focus returns to whatever opened it
- Live regions announce what changed, not that something did
- Honours prefers-reduced-motion
Responsive behavior
- Sizes to its container, not the viewport
- Usable from 320px up
- Pointer-based interaction, so trackpad and touch both work
- No hover-only affordances