BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/retab-ui/alert-dialog

Alert Dialog

retab-ui/alert-dialog
FreeComponent

A modal alert dialog for destructive confirmations and blocking decisions.

Install it

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

Source

registry/new-york-v4/ui/alert-dialog.tsxui.retab.com/r/alert-dialog.json
1"use client";
2
3import * as React from "react";
4import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
5
6import { cn } from "@/lib/utils";
7import { Button } from "@/components/ui/button";
8
9function AlertDialog({
10 ...props
11}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
12 return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
13}
14
15function AlertDialogTrigger({
16 ...props
17}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
18 return (
19 <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
20 );
21}
22
23function AlertDialogPortal({
24 ...props
25}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
26 return (
27 <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
28 );
29}
30
31function AlertDialogOverlay({
32 className,
33 ...props
34}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {
35 return (
36 <AlertDialogPrimitive.Overlay
37 data-slot="alert-dialog-overlay"
38 className={cn(
39 "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
40 className,
41 )}
42 {...props}
43 />
44 );
45}
46
47function AlertDialogContent({
48 className,
49 size = "default",
50 ...props
51}: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
52 size?: "default" | "sm";
53}) {
54 return (
55 <AlertDialogPortal>
56 <AlertDialogOverlay />
57 <AlertDialogPrimitive.Content
58 data-slot="alert-dialog-content"
59 data-size={size}
60 className={cn(
61 "group/alert-dialog-content bg-background data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 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%] gap-4 rounded-lg border p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg",
62 className,
63 )}
64 {...props}
65 />
66 </AlertDialogPortal>
67 );
68}
69
70function AlertDialogHeader({
71 className,
72 ...props
73}: React.ComponentProps<"div">) {
74 return (
75 <div
76 data-slot="alert-dialog-header"
77 className={cn(
78// … truncated

What it pulls in

npm packages

  • radix-ui

Other registry items

  • button
  • @retab/utils

Files it writes

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

Facts

Registry
retab-ui
Type
registry:ui
Access
Free
Files written
1
Licence
NOASSERTION
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

ui.retab.com retab-dev/retab-ui on GitHub Raw registry item This item as JSON

More from retab-ui

All 130 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Alertalertretab-uiComponentsFree1 dep
Aspect Ratioaspect-ratioretab-uiComponentsFreeno deps
Attachment Sidebarattachment-sidebarretab-uiComponentsFree1 dep
Autocompleteautocompleteretab-uiComponentsFree2 deps
Calendarcalendarretab-uiComponentsFree2 deps
Code Viewercode-viewerretab-uiComponentsFree2 deps · 32 files
Commandcommandretab-uiComponentsFree2 deps
CSV source adaptercsv-sourceretab-uiComponentsFreeno 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