Alert Dialog
bundui/alert-dialogFreeComponent
A modal dialog that interrupts the user with important content and expects a response.
Live preview
live · rendered by the registry
Rendered by bundui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://bundui.io/r/alert-dialog.jsonSource
1"use client";23import {4 AlertDialog,5 AlertDialogAction,6 AlertDialogCancel,7 AlertDialogContent,8 AlertDialogDescription,9 AlertDialogFooter,10 AlertDialogHeader,11 AlertDialogTitle,12 AlertDialogTrigger13} from "@/components/ui/alert-dialog";14import { Button } from "@/components/ui/button";15import { useState } from "react";1617export default function AlertDialogDemo() {18 const [open, setOpen] = useState(true);1920 return (21 <AlertDialog open={open} onOpenChange={setOpen}>22 <AlertDialogTrigger asChild>23 <Button variant="outline">Show Dialog</Button>24 </AlertDialogTrigger>25 <AlertDialogContent>26 <AlertDialogHeader>27 <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>28 <AlertDialogDescription>29 This action cannot be undone. This will permanently delete your account and remove your30 data from our servers.31 </AlertDialogDescription>32 </AlertDialogHeader>33 <AlertDialogFooter>34 <AlertDialogCancel>Cancel</AlertDialogCancel>35 <AlertDialogAction>Continue</AlertDialogAction>36 </AlertDialogFooter>37 </AlertDialogContent>38 </AlertDialog>39 );40}
What it pulls in
Other registry items
Files it writes
More from bundui
All 217 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion-collapsible | bundui | Components | Free | no deps · 2 files | |
| Accordionaccordion-default | bundui | Components | Free | no deps | |
| Accordionaccordion-with-plus-icon | bundui | Components | Free | 2 deps | |
| Alertalert-danger | bundui | Components | Free | 1 dep | |
| Alertalert-default | bundui | Components | Free | no deps | |
| Alertalert-success | bundui | Components | Free | 1 dep | |
| Alertalert-warning | bundui | Components | Free | 1 dep | |
| Alertalert-with-action-button | bundui | Components | Free | 1 dep |
