macOS Toast

NewInteractive

macOS Sequoia-inspired stacked glass notification system with four-layer zero-bleed occlusion, 3D deck expansion, inline reply, live progress, and Web Audio chimes.

Installation


Anatomy

MacOSToaster (Fixed viewport host with ResizeObserver slot measurement & hover bridge)├── Stack Control Bar (Notification count badge, Pin/Unpin toggle, Clear All)└── MeasuredToastSlot[] (3D deck transforms & rear-card height clamping)    └── MacOSToastCard (Four-layer zero-bleed glass or solid ceramic surface)        ├── Floating Close Pill        ├── Tactile 3D Squircle Badge + Content + Progress / Expandable Drawer        ├── Split Vertical Hairline Action Column (Reply / Action / Cancel)        └── Inline Quick Reply Form

Usage

Mount the Toaster

import { MacOSToaster } from "@/components/macos-toast"
export function AppLayout({ children }: { children: React.ReactNode }) { return ( <> {children} <MacOSToaster position="top-right" material="frosted" theme="auto" /> </> )}

Trigger Notifications Imperatively

import { macToast } from "@/components/macos-toast"
macToast.success("Build Completed", { subtitle: "1.4s", description: "Production bundle deployed to global edge network.", action: { label: "Inspect", onClick: () => console.log("Inspecting build..."), }, cancel: { label: "Close", },})

Promise Morphing

macToast.promise(syncRegistry(), {  loading: {    title: "Syncing Registry...",    subtitle: "Edge",    description: "Compiling UI tokens and verifying glass occlusion.",  },  success: (data) => ({    title: "Registry Synced",    subtitle: data.time,    description: "All components are live and cached.",  }),  error: () => ({    title: "Sync Failed",    description: "Timed out while connecting to remote origin.",  }),})

Props

MacOSToaster

Prop
Type

macToast.show(options)

Option
Type

Command Palette

Quick search and commands navigation