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

alert-dialog

showcase-elevenlabs/alert-dialog
FreeComponent

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/alert-dialog.json

Source

ui/alert-dialog.tsxraw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/alert-dialog.json
1"use client"
2
3import * as React from "react"
4import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
5
6import { cn } from "@/lib/utils"
7import { buttonVariants } from "@/registry/new-york/ui/button"
8
9const AlertDialog = AlertDialogPrimitive.Root
10
11const AlertDialogTrigger = AlertDialogPrimitive.Trigger
12
13const AlertDialogPortal = AlertDialogPrimitive.Portal
14
15const AlertDialogOverlay = React.forwardRef<
16 React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
17 React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
18>(({ className, ...props }, ref) => (
19 <AlertDialogPrimitive.Overlay
20 className={cn(
21 "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
22 className
23 )}
24 {...props}
25 ref={ref}
26 />
27))
28AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName
29
30const AlertDialogContent = React.forwardRef<
31 React.ElementRef<typeof AlertDialogPrimitive.Content>,
32 React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
33>(({ className, ...props }, ref) => (
34 <AlertDialogPortal>
35 <AlertDialogOverlay />
36 <AlertDialogPrimitive.Content
37 ref={ref}
38 className={cn(
39 "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
40 className
41 )}
42 {...props}
43 />
44 </AlertDialogPortal>
45))
46AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName
47
48const AlertDialogHeader = ({
49 className,
50 ...props
51}: React.HTMLAttributes<HTMLDivElement>) => (
52 <div
53 className={cn(
54 "flex flex-col space-y-2 text-center sm:text-left",
55 className
56 )}
57 {...props}
58 />
59)
60AlertDialogHeader.displayName = "AlertDialogHeader"
61
62const AlertDialogFooter = ({
63 className,
64 ...props
65}: React.HTMLAttributes<HTMLDivElement>) => (
66 <div
67 className={cn(
68 "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
69 className
70 )}
71 {...props}
72 />
73)
74// … 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
shadcn/ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

showcase.elevenlabs.io elevenlabs/showcase on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 357 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn/uiComponentsFree1 dep
alertalertshadcn/uiComponentsFreeno deps
aspect-ratioaspect-ratioshadcn/uiComponentsFree1 dep
avataravatarshadcn/uiComponentsFree1 dep
badgebadgeshadcn/uiComponentsFree1 dep
breadcrumbbreadcrumbshadcn/uiComponentsFree1 dep
buttonbuttonshadcn/uiComponentsFree1 dep
calendarcalendarshadcn/uiComponentsFree2 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