Alert dialog1
mynaui/alert-dialog1FreeComponent
A modal dialog that interrupts the user with important content and expects a response.
Install it
npx shadcn@latest add https://mynaui.com/r/alert-dialog1.jsonSource
1import {2 AlertDialog,3 AlertDialogAction,4 AlertDialogCancel,5 AlertDialogContent,6 AlertDialogDescription,7 AlertDialogFooter,8 AlertDialogHeader,9 AlertDialogTitle,10 AlertDialogTrigger,11} from "@/ui/alert-dialog";12import { Button, buttonVariants } from "@/ui/button";1314export default function AlertDialog1() {15 return (16 <AlertDialog>17 <AlertDialogTrigger asChild>18 <Button>Show Alert Dialog</Button>19 </AlertDialogTrigger>20 <AlertDialogContent>21 <AlertDialogHeader>22 <AlertDialogTitle>Delete Account?</AlertDialogTitle>23 <AlertDialogDescription>24 Deleting your account is irreversible and will erase all your data.25 This action cannot be undone.26 </AlertDialogDescription>27 </AlertDialogHeader>28 <AlertDialogFooter>29 <AlertDialogCancel>Cancel</AlertDialogCancel>30 <AlertDialogAction31 className={buttonVariants({ variant: "destructive" })}32 >33 Continue34 </AlertDialogAction>35 </AlertDialogFooter>36 </AlertDialogContent>37 </AlertDialog>38 );39}
What it pulls in
Other registry items
Files it writes
More from mynaui
All 346 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordion1accordion1 | mynaui | Components | Free | no deps · 2 files | |
| Accordion2accordion2 | mynaui | Components | Free | no deps · 2 files | |
| Accordion3accordion3 | mynaui | Components | Free | no deps · 2 files | |
| Accordion4accordion4 | mynaui | Components | Free | 1 dep · 2 files | |
| Accordion5accordion5 | mynaui | Components | Free | 1 dep · 2 files | |
| Alert dialog2alert-dialog2 | mynaui | Components | Free | 1 dep · 2 files | |
| Alert dialog3alert-dialog3 | mynaui | Components | Free | 1 dep · 2 files | |
| Alert dialog4alert-dialog4 | mynaui | Components | Free | 1 dep · 2 files |
