Default Alert Dialog
shadcn-ui-blocks/alert-dialog-01FreeComponent
A default alert dialog component
Install it
npx shadcn@latest add https://shadcnui-blocks.com/r/alert-dialog-01.jsonSource
1import {2 AlertDialog,3 AlertDialogAction,4 AlertDialogCancel,5 AlertDialogContent,6 AlertDialogDescription,7 AlertDialogFooter,8 AlertDialogHeader,9 AlertDialogTitle,10 AlertDialogTrigger,11} from "@/registry/ui/alert-dialog";12import { Button } from "@/registry/ui/button";1314export default function AlertDialogDemo() {15 return (16 <AlertDialog>17 <AlertDialogTrigger asChild>18 <Button variant="outline">Show Dialog</Button>19 </AlertDialogTrigger>20 <AlertDialogContent>21 <AlertDialogHeader>22 <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>23 <AlertDialogDescription className="text-[15px]">24 This action cannot be undone. This will permanently delete your25 account and remove your data from our servers.26 </AlertDialogDescription>27 </AlertDialogHeader>28 <AlertDialogFooter>29 <AlertDialogCancel>Cancel</AlertDialogCancel>30 <AlertDialogAction>Continue</AlertDialogAction>31 </AlertDialogFooter>32 </AlertDialogContent>33 </AlertDialog>34 );35}
What it pulls in
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 |
