BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Shadcn UI Blocks/alert-dialog-02

Alert Dialog With Icon

shadcn-ui-blocks/alert-dialog-02
FreeComponent

An alert dialog with icon component

Install it

npx shadcn@latest add https://shadcnui-blocks.com/r/alert-dialog-02.json

Source

src/components/customized/alert-dialog/alert-dialog-02.tsxshadcnui-blocks.com/r/alert-dialog-02.json
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";
14
15export 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 your
31 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

  • lucide-react

Other registry items

  • alert-dialog
  • button

Files it writes

  • src/components/customized/alert-dialog/alert-dialog-02.tsx

Facts

Registry
Shadcn UI Blocks
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

shadcnui-blocks.com akash3444/shadcn-ui-blocks on GitHub Raw registry item This item as JSON

More from Shadcn UI Blocks

All 542 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Default Accordionaccordion-01Shadcn UI BlocksComponentsFreeno deps
Outline Accordionaccordion-02Shadcn UI BlocksComponentsFreeno deps
Box Accordionaccordion-03Shadcn UI BlocksComponentsFreeno deps
Contained Accordionaccordion-04Shadcn UI BlocksComponentsFreeno deps
Box Contained Accordionaccordion-05Shadcn UI BlocksComponentsFreeno deps
Tabs Accordionaccordion-06Shadcn UI BlocksComponentsFreeno deps
Highlight Active Item Accordionaccordion-07Shadcn UI BlocksComponentsFreeno deps
Multiple Expanded at a time Accordionaccordion-08Shadcn UI BlocksComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex