One irreversible decision: what will be lost, type to confirm, a locked action that can fail.
Import it and pass your content. The props that matter most are listed next.
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "@/components/ui/notchset/alert-dialog";
export function DeleteProject({ remove }: { remove: () => Promise<void> }) {
return (
<AlertDialog>
<AlertDialogTrigger>Delete project</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Delete Atlas?</AlertDialogTitle>
<AlertDialogDescription>This removes the project for everyone.</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel />
<AlertDialogAction loadingLabel="DELETING" onClick={remove}>DELETE ATLAS</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
);
}onClick (AlertDialogAction)–
() => unknown | Promise<unknown>A Promise locks the dialog; it closes when it resolves and stays open when it rejects. Return false to keep it open.
loadingLabel (AlertDialogAction)–
stringThe label while it works, e.g. DELETING.
items (AlertDialogLoss)–
[number, text][]What will be lost, as large tabular numbers.
expected (AlertDialogConfirmInput)–
stringThe text to type; it takes focus and reports matches through onMatchChange.
AlertDialogdata-slot="alert-dialog"
Root; open state and the busy lock.
AlertDialogContentdata-slot="alert-dialog-content"
Scrim and panel.
AlertDialogHeader / Kicker / Title / Descriptiondata-slot="alert-dialog-header"
What is being decided.
AlertDialogLoss / ConfirmInput / Errordata-slot="alert-dialog-loss"
What will be lost, type to confirm, a failure.
AlertDialogFooter / Cancel / Actiondata-slot="alert-dialog-footer"
The decision.
components/ui/notchset/alert-dialog.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/alert-dialog.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/alert-dialog.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
pnpm add @base-ui/react@^1The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-04
First release