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
  fbae286b_8e5a_a33a_7504_4c43b5c6bef3["alert-dialog-demo.tsx"]
  ac7be3e0_8338_acf7_1aa4_0d886e90c76e["alert-dialog"]
  fbae286b_8e5a_a33a_7504_4c43b5c6bef3 --> ac7be3e0_8338_acf7_1aa4_0d886e90c76e
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  fbae286b_8e5a_a33a_7504_4c43b5c6bef3 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  style fbae286b_8e5a_a33a_7504_4c43b5c6bef3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export default 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/new-york/examples/alert-dialog-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/examples).

Analyze Your Own Codebase

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

Try Supermodel Free