Notification stack preview

Notification stack

Notice cards stacked behind each other – dismiss the front one to reveal the next

  • Group
    Messages
  • Origin
    Copied · affectUI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/notification-stack

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { NotificationStack } from "@/registry/components/notification-stack/notification-stack";

<NotificationStack notices={[/* … */]} />

Props

NameTypeDefaultDescription
noticesNotice[]id, badge, title, text, action ({ label, href, onClick, external }) and pattern
onDismiss(notice: Notice) => voidCalled when a notice is dismissed with its close button
classNamestringExtra class on the stack

When to use

- A few announcements or notices in a corner of an app – releases, maintenance, invites - Toast-style messages that stay until someone dismisses them

When not to use

Transient toasts that auto-dismiss, or many simultaneous alerts (use a list).

Related

Decision inbox · Change summary