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

agentmesh/alert-dialog
FreeComponent

shadcn/ui publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/alert-dialog.json

Source

registry/base-vega/ui/alert-dialog.tsxraw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/alert-dialog.json
1"use client"
2
3import * as React from "react"
4import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog"
5
6import { cn } from "@/registry/base-vega/lib/utils"
7import { Button } from "@/registry/base-vega/ui/button"
8
9function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props) {
10 return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
11}
12
13function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props) {
14 return (
15 <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
16 )
17}
18
19function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props) {
20 return (
21 <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
22 )
23}
24
25function AlertDialogOverlay({
26 className,
27 ...props
28}: AlertDialogPrimitive.Backdrop.Props) {
29 return (
30 <AlertDialogPrimitive.Backdrop
31 data-slot="alert-dialog-overlay"
32 className={cn(
33 "fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
34 className
35 )}
36 {...props}
37 />
38 )
39}
40
41function AlertDialogContent({
42 className,
43 size = "default",
44 ...props
45}: AlertDialogPrimitive.Popup.Props & {
46 size?: "default" | "sm"
47}) {
48 return (
49 <AlertDialogPortal>
50 <AlertDialogOverlay />
51 <AlertDialogPrimitive.Popup
52 data-slot="alert-dialog-content"
53 data-size={size}
54 className={cn(
55 "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
56 className
57 )}
58 {...props}
59 />
60 </AlertDialogPortal>
61 )
62}
63
64function AlertDialogHeader({
65 className,
66 ...props
67}: React.ComponentProps<"div">) {
68 return (
69 <div
70 data-slot="alert-dialog-header"
71 className={cn(
72// … truncated

What it pulls in

Other registry items

  • button

Files it writes

  • registry/base-vega/ui/alert-dialog.tsx

Facts

Registry
shadcn/ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
3 days ago

Go to the source

Docs on shadcn/ui ombhanushaliii/agentmesh on GitHub Raw registry item This item as JSON

More from shadcn/ui

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