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/alert-dialog-example

Alert Dialog

agileflow-projectquestorg/alert-dialog-example
FreeExample

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/alert-dialog-example.json

Source

registry/radix-nova/examples/alert-dialog-example.tsxraw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/alert-dialog-example.json · first 6 KB
1import {
2 Example,
3 ExampleWrapper,
4} from "@/registry/bases/radix/components/example"
5import {
6 AlertDialog,
7 AlertDialogAction,
8 AlertDialogCancel,
9 AlertDialogContent,
10 AlertDialogDescription,
11 AlertDialogFooter,
12 AlertDialogHeader,
13 AlertDialogMedia,
14 AlertDialogTitle,
15 AlertDialogTrigger,
16} from "@/registry/bases/radix/ui/alert-dialog"
17import { Button } from "@/registry/bases/radix/ui/button"
18import {
19 Dialog,
20 DialogContent,
21 DialogDescription,
22 DialogFooter,
23 DialogHeader,
24 DialogTitle,
25 DialogTrigger,
26} from "@/registry/bases/radix/ui/dialog"
27import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
28
29export default function AlertDialogExample() {
30 return (
31 <ExampleWrapper>
32 <AlertDialogBasic />
33 <AlertDialogSmall />
34 <AlertDialogWithMedia />
35 <AlertDialogSmallWithMedia />
36 <AlertDialogDestructive />
37 <AlertDialogInDialog />
38 </ExampleWrapper>
39 )
40}
41
42function AlertDialogBasic() {
43 return (
44 <Example title="Basic" className="items-center">
45 <AlertDialog>
46 <AlertDialogTrigger asChild>
47 <Button variant="outline">Default</Button>
48 </AlertDialogTrigger>
49 <AlertDialogContent>
50 <AlertDialogHeader>
51 <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
52 <AlertDialogDescription>
53 This action cannot be undone. This will permanently delete your
54 account and remove your data from our servers.
55 </AlertDialogDescription>
56 </AlertDialogHeader>
57 <AlertDialogFooter>
58 <AlertDialogCancel>Cancel</AlertDialogCancel>
59 <AlertDialogAction>Continue</AlertDialogAction>
60 </AlertDialogFooter>
61 </AlertDialogContent>
62 </AlertDialog>
63 </Example>
64 )
65}
66
67function AlertDialogSmall() {
68 return (
69 <Example title="Small" className="items-center">
70 <AlertDialog>
71 <AlertDialogTrigger asChild>
72 <Button variant="outline">Small</Button>
73 </AlertDialogTrigger>
74 <AlertDialogContent size="sm">
75 <AlertDialogHeader>
76 <AlertDialogTitle>Allow accessory to connect?</AlertDialogTitle>
77 <AlertDialogDescription>
78 Do you want to allow the USB accessory to connect to this device?
79 </AlertDialogDescription>
80 </AlertDialogHeader>
81 <AlertDialogFooter>
82 <AlertDialogCancel>Don&apos;t allow</AlertDialogCancel>
83// … truncated

What it pulls in

Other registry items

  • alert-dialog
  • button
  • dialog
  • example

Files it writes

  • registry/radix-nova/examples/alert-dialog-example.tsx

Facts

Registry
shadcn/ui
Type
registry:example
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

agileflow.projectquestorg.com projectquestorg/AgileFlow on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 133 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordion-exampleshadcn/uiExamplesFreeno deps
Alertalert-exampleshadcn/uiExamplesFreeno deps
Aspect Ratioaspect-ratio-exampleshadcn/uiExamplesFreeno deps
Avataravatar-exampleshadcn/uiExamplesFreeno deps
Badgebadge-exampleshadcn/uiExamplesFreeno deps
Breadcrumbbreadcrumb-exampleshadcn/uiExamplesFreeno deps
Buttonbutton-exampleshadcn/uiExamplesFreeno deps
Button Groupbutton-group-exampleshadcn/uiExamplesFreeno 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