RetroToaster
Toasts rendered as Mac OS 9 alert windows: striped title bar, close box, alert icons and OS9 buttons. Built on UI SDK's Toast, with sonner's toast() call shape.
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. Put @layer ui-sdk; above @import "tailwindcss" in your global CSS (why).
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." })
// act, then offer Undo
moveToTrash("Read Me")
toast("“Read Me” moved to Trash", {
action: { label: "Undo", onClick: () => putBack("Read Me") },
})Act, Then Undo
Don't ask “Are you sure?” for something that can be undone. Do it at once, then offer Undo for a few seconds.
- Read Me
- SimpleText Notes
- Budget 1999
- Scrapbook File
Types
Promise
Action and Cancel
Title Only
Mount one <RetroToaster /> near the root of your app, then call toast() from anywhere. Alerts stack in the corner; hover the stack to fan it out, swipe an alert toward the edge to dismiss it, or press F6 to reach the newest one from the keyboard. Pass titleStripe={false} for a plain window without the striped title bar.