Home / File/ dialog.tsx — ui Source File

dialog.tsx — ui Source File

Architecture documentation for dialog.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 5 imports 10 functions

Entity Profile

Dependency Diagram

graph LR
  227df22f_68bf_2113_9bf8_6cdcdbd26878["dialog.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  227df22f_68bf_2113_9bf8_6cdcdbd26878 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  3d9438e8_7604_787c_4898_907262aff28b["utils"]
  227df22f_68bf_2113_9bf8_6cdcdbd26878 --> 3d9438e8_7604_787c_4898_907262aff28b
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  227df22f_68bf_2113_9bf8_6cdcdbd26878 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  86c25b21_4f1d_ec20_df66_b57d63c10480["dialog"]
  227df22f_68bf_2113_9bf8_6cdcdbd26878 --> 86c25b21_4f1d_ec20_df66_b57d63c10480
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  227df22f_68bf_2113_9bf8_6cdcdbd26878 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 227df22f_68bf_2113_9bf8_6cdcdbd26878 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { cn } from "@/examples/base/lib/utils"
import { Button } from "@/examples/base/ui/button"
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog"
import { XIcon } from "lucide-react"

function Dialog({ ...props }: DialogPrimitive.Root.Props) {
  return <DialogPrimitive.Root data-slot="dialog" {...props} />
}

function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {
  return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />
}

function DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {
  return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />
}

function DialogClose({ ...props }: DialogPrimitive.Close.Props) {
  return <DialogPrimitive.Close data-slot="dialog-close" {...props} />
}

function DialogOverlay({
  className,
  ...props
}: DialogPrimitive.Backdrop.Props) {
  return (
    <DialogPrimitive.Backdrop
      data-slot="dialog-overlay"
      className={cn(
        "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs",
        className
      )}
      {...props}
    />
  )
}

function DialogContent({
  className,
  children,
  showCloseButton = true,
  ...props
}: DialogPrimitive.Popup.Props & {
  showCloseButton?: boolean
}) {
  return (
    <DialogPortal>
      <DialogOverlay />
      <DialogPrimitive.Popup
        data-slot="dialog-content"
        className={cn(
          "bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 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-4 rounded-xl p-4 text-sm ring-1 duration-100 outline-none sm:max-w-sm",
          className
        )}
        {...props}
      >
        {children}
// ... (96 more lines)

Subdomains

Dependencies

  • button
  • dialog
  • lucide-react
  • react
  • utils

Frequently Asked Questions

What does dialog.tsx do?
dialog.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in dialog.tsx?
dialog.tsx defines 10 function(s): Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger.
What does dialog.tsx depend on?
dialog.tsx imports 5 module(s): button, dialog, lucide-react, react, utils.
Where is dialog.tsx in the architecture?
dialog.tsx is located at apps/v4/examples/base/ui/dialog.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base/ui).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free