Home / File/ alert-dialog-demo.tsx — ui Source File

alert-dialog-demo.tsx — ui Source File

Architecture documentation for alert-dialog-demo.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  264854e1_b8b1_daf7_65f6_b9d76c977238["alert-dialog-demo.tsx"]
  31040cdc_5c32_a7e9_da2f_306d6057362c["alert-dialog"]
  264854e1_b8b1_daf7_65f6_b9d76c977238 --> 31040cdc_5c32_a7e9_da2f_306d6057362c
  d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"]
  264854e1_b8b1_daf7_65f6_b9d76c977238 --> d418ad18_b947_f4e5_6e4c_01100d7a63e4
  style 264854e1_b8b1_daf7_65f6_b9d76c977238 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  AlertDialog,
  AlertDialogAction,
  AlertDialogCancel,
  AlertDialogContent,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogHeader,
  AlertDialogTitle,
  AlertDialogTrigger,
} from "@/registry/default/ui/alert-dialog"
import { Button } from "@/registry/default/ui/button"

export function AlertDialogDemo() {
  return (
    <AlertDialog>
      <AlertDialogTrigger asChild>
        <Button variant="outline">Show Dialog</Button>
      </AlertDialogTrigger>
      <AlertDialogContent>
        <AlertDialogHeader>
          <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
          <AlertDialogDescription>
            This action cannot be undone. This will permanently delete your
            account and remove your data from our servers.
          </AlertDialogDescription>
        </AlertDialogHeader>
        <AlertDialogFooter>
          <AlertDialogCancel>Cancel</AlertDialogCancel>
          <AlertDialogAction>Continue</AlertDialogAction>
        </AlertDialogFooter>
      </AlertDialogContent>
    </AlertDialog>
  )
}

Subdomains

Functions

Dependencies

  • alert-dialog
  • button

Frequently Asked Questions

What does alert-dialog-demo.tsx do?
alert-dialog-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in alert-dialog-demo.tsx?
alert-dialog-demo.tsx defines 1 function(s): AlertDialogDemo.
What does alert-dialog-demo.tsx depend on?
alert-dialog-demo.tsx imports 2 module(s): alert-dialog, button.
Where is alert-dialog-demo.tsx in the architecture?
alert-dialog-demo.tsx is located at deprecated/www/registry/default/internal/sink/components/alert-dialog-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/internal/sink/components).

Analyze Your Own Codebase

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

Try Supermodel Free