Black Friday: 30% off Pro

Get 30% off

Updated

Notification Stack

Preview

  1. Maya ChennowPushed the new tab bar, take a look

Customize

Visible2
Peek12px
Gap10px
Blur24px

Installation

npx shadcn@latest add https://uibrik.com/r/notification-stack.json
Adds the files to components/uibrik/notification-stack and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/notification-stack.

Usage

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) => {}}/>

Where to use Notification Stack

  • Desktop-style alerts

    Notifications piling up as frosted glass panes echo macOS.

    Pairs with Toast

  • 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.

Props

NotificationStack
visible
Type number
2
Notifications peeking out behind the front one.
peek
Type number
12
How far each one behind peeks out.
gap
Type number
10
Gap between notifications when fanned out.
blur
Type number
24
Backdrop blur of the glass.
expanded
Type boolean
false
Fan the stack out even without hover.
notificationsrequired
Type { id; title; body?; icon?; time? }[]
–
Newest first.
onDismiss
Type (id) => void
–
Called when one is swiped away or its close button pressed. Remove it from the list here.
className
Type string
–
Classes for the list.