Acrylic
Components

Alert Dialog

Frosted confirm dialog — the AlertDialog counterpart of the acrylic Dialog.

A confirm dialog with the same 20px frosted overlay and translucent panel as the Dialog. It shares the dialog's ref-counted body-paint, so it can stack on top of a Dialog without either one losing its frost.

Installation

npx shadcn add https://acrylic-ui.vercel.app/r/alert-dialog.json

Usage

Notes

  • Panel uses the macOS 26 alert metrics — 26px corner radius over the frosted overlay.
  • AlertDialogAction / AlertDialogCancel reuse the acrylic Button (via buttonVariants) at the kit's large size (28px): Action → default, Cancel → neutral.
  • For a destructive action, pass className={buttonVariants({ variant: "destructive", size: "large" })}.
  • Like Dialog, the panel is a grid whose children carry min-w-0: a long unbreakable string inside (a truncated path/URL, a <pre>) would otherwise push the grid track past max-w-lg and stretch the whole panel. Overflow stays inside the child, so truncate / overflow-x-auto on your content works as written.

On this page