BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/HextaUI/alert-dialog

Alert Dialog

hextaui/alert-dialog
FreeComponent

Modal dialog for important actions or decisions.

Live preview

live · rendered by the registry
Rendered by HextaUI on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://hextaui.com/r/alert-dialog.json

Source

registry/new-york/ui/alert-dialog.tsxhextaui.com/r/alert-dialog.json
1"use client";
2
3import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
4import type * as React from "react";
5import { cn } from "@/lib/utils";
6import { buttonVariants } from "@/registry/new-york/ui/button";
7
8function AlertDialog({
9 ...props
10}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
11 return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
12}
13
14function AlertDialogTrigger({
15 ...props
16}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
17 return (
18 <AlertDialogPrimitive.Trigger
19 data-slot="alert-dialog-trigger"
20 type="button"
21 {...props}
22 />
23 );
24}
25
26function AlertDialogPortal({
27 ...props
28}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
29 return (
30 <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
31 );
32}
33
34function AlertDialogOverlay({
35 className,
36 ...props
37}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {
38 return (
39 <AlertDialogPrimitive.Overlay
40 className={cn(
41 "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 touch-manipulation overscroll-contain bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in motion-reduce:animate-none",
42 className
43 )}
44 data-slot="alert-dialog-overlay"
45 {...props}
46 />
47 );
48}
49
50function AlertDialogContent({
51 className,
52 ...props
53}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {
54 return (
55 <AlertDialogPortal>
56 <AlertDialogOverlay />
57 <AlertDialogPrimitive.Content
58 className={cn(
59 "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] touch-manipulation gap-4 overscroll-contain rounded-lg border bg-background p-6 shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in motion-safe:duration-200 motion-reduce:animate-none sm:max-w-lg",
60 className
61 )}
62 data-slot="alert-dialog-content"
63 {...props}
64 />
65 </AlertDialogPortal>
66 );
67}
68
69function AlertDialogHeader({
70 className,
71 ...props
72}: React.ComponentProps<"div">) {
73 return (
74 <div
75 className={cn("flex flex-col gap-2 text-center sm:text-left", className)}
76 data-slot="alert-dialog-header"
77 {...props}
78 />
79 );
80}
81
82function AlertDialogFooter({
83 className,
84 ...props
85// … truncated

What it pulls in

npm packages

  • @radix-ui/react-alert-dialog

Other registry items

  • button

Files it writes

  • registry/new-york/ui/alert-dialog.tsx

Facts

Registry
HextaUI
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on HextaUI hextaui.com preetsuthar17/HextaUI on GitHub Raw registry item This item as JSON

More from HextaUI

All 139 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionHextaUIComponentsFree1 dep
AI Chat Historyai-chat-historyHextaUIComponentsFreeno deps
AI Citationsai-citationsHextaUIComponentsFreeno deps
AI Conversationai-conversationHextaUIComponentsFreeno deps
AI Error Handlerai-error-handlerHextaUIComponentsFreeno deps
AI File Uploadai-file-uploadHextaUIComponentsFreeno deps
AI Messageai-messageHextaUIComponentsFree4 deps
AI Model Selectorai-model-selectorHextaUIComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex