BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/revola/alert-dialog-with-icon

Alert Dialog with Icon

revola/alert-dialog-with-icon
FreeComponent

A responsive alert dialog component that automatically adapts to screen size - drawer on mobile, modal on desktop.

Install it

npx shadcn@latest add https://revola.sameerjs.com/r/alert-dialog-with-icon.json

Source

registry/revola/examples/origin-ui/alerts/alert-dialog-with-icon.tsxrevola.sameerjs.com/r/alert-dialog-with-icon.json
1import { CircleAlertIcon } from "lucide-react";
2
3import { Button } from "@/components/ui/button";
4import {
5 ResponsiveDialog,
6 ResponsiveDialogClose,
7 ResponsiveDialogContent,
8 ResponsiveDialogDescription,
9 ResponsiveDialogFooter,
10 ResponsiveDialogHeader,
11 ResponsiveDialogTitle,
12 ResponsiveDialogTrigger,
13} from "@/components/ui/revola";
14
15export default function AlertIconDialog() {
16 return (
17 <ResponsiveDialog alert onlyDialog>
18 <ResponsiveDialogTrigger asChild>
19 <Button variant="outline" className="h-12 rounded-full px-6 capitalize">
20 Alert with Icon
21 </Button>
22 </ResponsiveDialogTrigger>
23 <ResponsiveDialogContent className="sm:max-w-[400px]">
24 <div className="p-6">
25 <div className="flex flex-col gap-2 max-sm:items-center sm:flex-row sm:gap-4">
26 <div className="flex size-9 shrink-0 items-center justify-center rounded-full border" aria-hidden="true">
27 <CircleAlertIcon className="opacity-80" size={16} />
28 </div>
29 <ResponsiveDialogHeader className="pt-2 sm:pt-0">
30 <ResponsiveDialogTitle>Are you sure?</ResponsiveDialogTitle>
31 <ResponsiveDialogDescription>
32 Are you sure you want to delete your account? All your data will be removed.
33 </ResponsiveDialogDescription>
34 </ResponsiveDialogHeader>
35 </div>
36
37 <ResponsiveDialogFooter className="mt-4 gap-2.5 sm:gap-2">
38 <ResponsiveDialogClose asChild>
39 <Button variant="secondary">Cancel</Button>
40 </ResponsiveDialogClose>
41 <ResponsiveDialogClose asChild>
42 <Button>Confirm</Button>
43 </ResponsiveDialogClose>
44 </ResponsiveDialogFooter>
45 </div>
46 </ResponsiveDialogContent>
47 </ResponsiveDialog>
48 );
49}

What it pulls in

npm packages

  • lucide-react

Other registry items

  • button
  • https://revola.sameerjs.com/r/revola.json

Files it writes

  • registry/revola/examples/origin-ui/alerts/alert-dialog-with-icon.tsx

Facts

Registry
revola
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
today

Go to the source

revola.sameerjs.com SameerJS6/revola on GitHub Raw registry item This item as JSON

More from revola

All 24 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Alert Dialogalert-dialogrevolaComponentsFreeno deps
Change Plan Dialogchange-planrevolaComponentsFree1 dep
Checkout DialogcheckoutrevolaComponentsFree2 deps
Credit Card Dialogcredit-cardrevolaComponentsFree2 deps
Custom Scrollbar Dialogcustom-scrollbarrevolaComponentsFreeno deps
Delete Project Dialogdelete-projectrevolaComponentsFree1 dep
Edit Profile Dialogedit-profilerevolaComponentsFree1 dep · 3 files
Feedback DialogfeedbackrevolaComponentsFreeno 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