Alert Dialog With Icon
shadcn-ui-blocks/alert-dialog-02FreeComponent
An alert dialog with icon component
Install it
npx shadcn@latest add https://shadcnui-blocks.com/r/alert-dialog-02.jsonSource
1import { OctagonAlert } from "lucide-react";2import {3 AlertDialog,4 AlertDialogAction,5 AlertDialogCancel,6 AlertDialogContent,7 AlertDialogDescription,8 AlertDialogFooter,9 AlertDialogHeader,10 AlertDialogTitle,11 AlertDialogTrigger,12} from "@/registry/ui/alert-dialog";13import { Button } from "@/registry/ui/button";1415export default function AlertDialogWithIcon() {16 return (17 <AlertDialog>18 <AlertDialogTrigger asChild>19 <Button variant="outline">Show Dialog</Button>20 </AlertDialogTrigger>21 <AlertDialogContent>22 <AlertDialogHeader>23 <AlertDialogTitle>24 <div className="mx-auto mb-4 flex h-9 w-9 items-center justify-center rounded-full bg-destructive/10 sm:mx-0">25 <OctagonAlert className="h-5 w-5 text-destructive" />26 </div>27 Are you absolutely sure?28 </AlertDialogTitle>29 <AlertDialogDescription className="text-[15px]">30 This action cannot be undone. This will permanently delete your31 account and remove your data from our servers.32 </AlertDialogDescription>33 </AlertDialogHeader>34 <AlertDialogFooter>35 <AlertDialogCancel>Cancel</AlertDialogCancel>36 <AlertDialogAction>Continue</AlertDialogAction>37 </AlertDialogFooter>38 </AlertDialogContent>39 </AlertDialog>40 );41}
What it pulls in
npm packages
Other registry items
Files it writes
More from Shadcn UI Blocks
All 542 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Default Accordionaccordion-01 | Shadcn UI Blocks | Components | Free | no deps | |
| Outline Accordionaccordion-02 | Shadcn UI Blocks | Components | Free | no deps | |
| Box Accordionaccordion-03 | Shadcn UI Blocks | Components | Free | no deps | |
| Contained Accordionaccordion-04 | Shadcn UI Blocks | Components | Free | no deps | |
| Box Contained Accordionaccordion-05 | Shadcn UI Blocks | Components | Free | no deps | |
| Tabs Accordionaccordion-06 | Shadcn UI Blocks | Components | Free | no deps | |
| Highlight Active Item Accordionaccordion-07 | Shadcn UI Blocks | Components | Free | no deps | |
| Multiple Expanded at a time Accordionaccordion-08 | Shadcn UI Blocks | Components | Free | no deps |
