uibrik

Notification Stack

New

Preview

Customize

Visible2
Peek12px
Gap10px
Blur24px

Usage

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

<NotificationStack notifications={notifications} />

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.

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.