RetroAlertDialog

A modal confirmation dialog with Mac OS 9 window chrome for destructive or important actions.

Installation

npx shadcn@latest add "https://nostalgia-ui.com/r/retro-alert-dialog.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 { RetroAlertDialog } from "@/components/ui/retro-alert-dialog"

Confirmation Dialog

Destructive Action

Note

Click a button and the alert zooms out of it. Answer with Cancel, the action button, or Escape; clicking outside leaves it open.