Customized Footer Alert Dialog
shadcn-ui-blocks/alert-dialog-06FreeComponent
An alert dialog with customized footer
Install it
npx shadcn@latest add https://shadcnui-blocks.com/r/alert-dialog-06.jsonSource
1import { ExternalLink, OctagonAlert, Trash } 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 AlertDialogWithCustomizedFooter() {16 return (17 <AlertDialog>18 <AlertDialogTrigger asChild>19 <Button variant="outline">Show Dialog</Button>20 </AlertDialogTrigger>21 <AlertDialogContent className="max-w-md!">22 <AlertDialogHeader className="pb-4">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 className="border-t">35 <Button36 className="mr-auto -ml-3 text-muted-foreground"37 variant="link"38 >39 Learn more <ExternalLink />40 </Button>41 <AlertDialogCancel variant="ghost">Cancel</AlertDialogCancel>42 <AlertDialogAction variant="destructive">43 <Trash />44 Continue45 </AlertDialogAction>46 </AlertDialogFooter>47 </AlertDialogContent>48 </AlertDialog>49 );50}
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 |
