CD-08Cards
Notification Stack
Stacked notifications that fan out on hover and swipe away, built with React and Tailwind CSS.
PROOnboarding Checklist and more like it are in Kokonut UI Pro
Installation
Notification Stack is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/notification-stack.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/notification-stackOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/notification-stack.tsx.
npm install lucide-reactUsage
import NotificationStack from "@/components/kokonutui/notification-stack";
export default function Example() {
return <NotificationStack />;
}Props
notificationsStackNotification[]Default built-inInitial notifications, newest first. The stack tracks dismissals itself.
onDismiss(id: string) => voidCalled after a notification has been swiped or clicked away.
classNamestringExtra classes for the root element.
StackNotification
idrequiredstringapprequiredstringtitlerequiredstringbodyrequiredstringtimerequiredstringiconReactNodeDependencies
| Needs | Version | Comes from |
|---|---|---|
lucide-react | ^0.556.0 | npm, installed by the CLI |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

