Alert Dialog
Neumorphic alert dialog on the Radix primitive. A floating sheet that casts one shadow onto a surface-derived scrim, actions as neu buttons.
Installation
bunx --bun shadcn@latest add https://neu.beyondtheinnovation.com/r/neu-alert-dialog.jsonUsage
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogTrigger,
} from "@/components/ui/neu/alert-dialog"
import { Button } from "@/components/ui/neu/button"<AlertDialog>
<AlertDialogTrigger asChild>
<Button variant="outline">Delete</Button>
</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Are you sure?</AlertDialogTitle>
<AlertDialogDescription>This cannot be undone.</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction>Continue</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>