Notification Stack
Notification Stack arranges identified notifications and local interaction states.
Practical React example
Let someone inspect recent notifications while preserving a path to the underlying records.
Before you copy and paste
Keep the example in the React rendering environment required by the imported component. Copy components/motion/notification-stack.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: clsx, lucide-react, motion, react, tailwind-merge.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Let someone inspect recent notifications while preserving a path to the underlying records
// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";
import { RotateCw } from "lucide-react";
import {
NotificationStack,
type NotificationStackItem,
} from "@/components/motion/notification-stack";
const notifications: NotificationStackItem[] = [
{
id: "import-failed",
title: "Orders import failed",
description: "42s · TimeoutError at Step 2",
trailing: (
<span className="inline-flex items-center gap-1 text-amber-500 dark:text-amber-400">
<RotateCw className="h-3.5 w-3.5" aria-hidden="true" />
2
</span>
),
},
{
id: "sla-breach",
title: "SLA breach",
description: "2m 11s · Data enrichment",
},
{
id: "sync-fixed",
title: "Product sync auto-fixed",
description: "5m · 404 on GET /products",
},
];
export function NotificationStackPreview() {
return (
<div className="flex w-full items-center justify-center pt-52 pb-6">
<NotificationStack items={notifications} />
</div>
);
}
Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.
Use durable notification IDs and treat dismissal or reading as explicit application operations when they are persisted.
Customization
- NotificationStackProps.items
- Required; NotificationStackItem[].
- NotificationStackProps.expanded
- Optional; boolean.
- NotificationStackProps.defaultExpanded
- Optional; boolean.
- NotificationStackProps.onExpandedChange
- Optional; (expanded: boolean) => void.
- NotificationStackProps.onViewAll
- Optional; () => void.
- NotificationStackProps.maxVisible
- Optional; number.
- NotificationStackProps.collapsedLabel
- Optional; string.
- NotificationStackProps.expandedLabel
- Optional; string.
- NotificationStackProps.emptyLabel
- Optional; string.
- NotificationStackProps.className
- Optional; string.
- NotificationStackProps.classNames
- Optional; NotificationStackClassNames.
- ActionSwapButtonProps.items
- Required; ActionSwapItem[].
- ActionSwapButtonProps.value
- Optional; string.
- ActionSwapButtonProps.defaultValue
- Optional; string.
Integration notes
- The stack is not a push-notification service or proof that a delivery succeeded.
- Keep important alerts available outside a transient collapsed stack and test keyboard access to stacked items.
Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.