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

dialog

agentmesh/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/dialog.json

Source

registry/base-vega/ui/dialog.tsxraw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/dialog.json
1"use client"
2
3import * as React from "react"
4import { Dialog as DialogPrimitive } from "@base-ui/react/dialog"
5
6import { cn } from "@/registry/base-vega/lib/utils"
7import { Button } from "@/registry/base-vega/ui/button"
8import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
9
10function Dialog({ ...props }: DialogPrimitive.Root.Props) {
11 return <DialogPrimitive.Root data-slot="dialog" {...props} />
12}
13
14function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {
15 return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />
16}
17
18function DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {
19 return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />
20}
21
22function DialogClose({ ...props }: DialogPrimitive.Close.Props) {
23 return <DialogPrimitive.Close data-slot="dialog-close" {...props} />
24}
25
26function DialogOverlay({
27 className,
28 ...props
29}: DialogPrimitive.Backdrop.Props) {
30 return (
31 <DialogPrimitive.Backdrop
32 data-slot="dialog-overlay"
33 className={cn(
34 "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",
35 className
36 )}
37 {...props}
38 />
39 )
40}
41
42function DialogContent({
43 className,
44 children,
45 showCloseButton = true,
46 ...props
47}: DialogPrimitive.Popup.Props & {
48 showCloseButton?: boolean
49}) {
50 return (
51 <DialogPortal>
52 <DialogOverlay />
53 <DialogPrimitive.Popup
54 data-slot="dialog-content"
55 className={cn(
56 "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md 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",
57 className
58 )}
59 {...props}
60 >
61 {children}
62 {showCloseButton && (
63 <DialogPrimitive.Close
64 data-slot="dialog-close"
65 render={
66 <Button
67 variant="ghost"
68 className="absolute top-4 right-4"
69 size="icon-sm"
70 />
71 }
72 >
73 <IconPlaceholder
74 lucide="XIcon"
75 tabler="IconX"
76 hugeicons="Cancel01Icon"
77 phosphor="XIcon"
78// … truncated

What it pulls in

Other registry items

  • button

Files it writes

  • registry/base-vega/ui/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
alert-dialogalert-dialogshadcn/uiComponentsFreeno deps
aspect-ratioaspect-ratioshadcn/uiComponentsFreeno deps
avataravatarshadcn/uiComponentsFreeno deps
badgebadgeshadcn/uiComponentsFreeno deps
breadcrumbbreadcrumbshadcn/uiComponentsFreeno deps
buttonbuttonshadcn/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