RetroToaster

Sonner toasts rendered as Mac OS 9 alert windows: striped title bar, close box, alert icons and OS9 buttons. Re-exports sonner's toast() so the full API works unchanged.

Installation

npx shadcn@latest add "https://nostalgia-ui.com/r/retro-sonner.json"

Setup: installing any component also installs nostalgia-theme (the --os9-* tokens and os9-* utilities) via registryDependencies. To add the theme on its own: npx shadcn@latest add https://nostalgia-ui.com/r/nostalgia-theme.json

Import

import { RetroToaster } from "@/components/ui/retro-sonner"

Usage

// app/layout.tsx
<RetroToaster />

// anywhere
toast.success("Copy complete", { description: "12 items copied to Macintosh HD." })

Types

Promise

Action and Cancel

Title Only

Mount one <RetroToaster /> near the root of your app, then call toast() from anywhere. Pass titleStripe={false} for a plain window without the striped title bar.