# Notification Stack

> Notifications that pile up as panes of frosted glass, fan out on hover and blur away when swiped.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › Overlays |
| Live preview | https://uibrik.com/components/notification-stack |
| Writes | 1 file into `components/uibrik/notification-stack/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/notification-stack.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/notification-stack`.

Can't run commands? https://uibrik.com/components/notification-stack/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { NotificationStack } from "@/components/uibrik/notification-stack/notification-stack";

const notifications = [
  { id: 1, title: "Maya Chen", body: "Pushed the new tab bar, take a look", time: "now" },
  { id: 2, title: "Design review", body: "Starts in 10 minutes · Room 4", time: "2m" },
];

<NotificationStack
  notifications={notifications}
  visible={2}
  peek={12}
  gap={10}
  blur={24}
  expanded={false}
  onDismiss={(id) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/notification-stack.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `visible` | `number` | `2` | Notifications peeking out behind the front one. |
| `peek` | `number` | `12` | How far each one behind peeks out. |
| `gap` | `number` | `10` | Gap between notifications when fanned out. |
| `blur` | `number` | `24` | Backdrop blur of the glass. |
| `expanded` | `boolean` | `false` | Fan the stack out even without hover. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `notifications` (required) | `{ id; title; body?; icon?; time? }[]` |  | Newest first. |
| `onDismiss` | `(id) => void` |  | Called when one is swiped away or its close button pressed. Remove it from the list here. |
| `className` | `string` |  | Classes for the list. |

## Where it fits

- **Desktop-style alerts**: Notifications piling up as frosted glass panes echo macOS. Pairs with [Toast](https://uibrik.com/components/toast.md).
- **Live dashboard updates**: Fanning out on hover lets users read several alerts without opening a panel.
- **Landing page demos**: Blurring away when swiped shows a product's notification feature in action.

## Same shelf: Overlays

- [Popover](https://uibrik.com/components/popover.md): A panel that grows out of its button, flips when there's no room, and keeps its arrow pointed at the button.
- [Product Tour](https://uibrik.com/components/product-tour.md) (Pro): An onboarding tour whose spotlight glides and reshapes from one element to the next, with a step card that follows it, flips to the side with room and eases to each step's height.
- [Toast](https://uibrik.com/components/toast.md): Toasts that stack, fan out on hover, swipe away, and follow a promise from loading to done in one toast.
- [Tooltip](https://uibrik.com/components/tooltip.md): A quiet tooltip that waits before the first one shows, then swaps instantly between neighbours in a toolbar.
- [Command Menu](https://uibrik.com/components/command-menu.md): A calm ⌘K command menu: fuzzy and server search, grouped results, nested pages, recents, hotkeys and full keyboard control, with optional filter pills.
- [Context Menu](https://uibrik.com/components/context-menu.md): A menu that opens where you right-click or long-press, with submenus, checkable items and full keyboard control.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/notification-stack/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
