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

alert-dialog-example.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 5 imports 7 functions

Entity Profile

Dependency Diagram

graph LR
  d0344643_7519_ec05_b167_295207d8cf8e["alert-dialog-example.tsx"]
  da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"]
  d0344643_7519_ec05_b167_295207d8cf8e --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a
  bfc430ce_d159_e9be_2c86_c916a11f886d["alert-dialog"]
  d0344643_7519_ec05_b167_295207d8cf8e --> bfc430ce_d159_e9be_2c86_c916a11f886d
  381135fe_5f7a_910a_b8a2_691e9756a016["button"]
  d0344643_7519_ec05_b167_295207d8cf8e --> 381135fe_5f7a_910a_b8a2_691e9756a016
  ee16c284_c278_b787_3146_67666cbd8485["dialog"]
  d0344643_7519_ec05_b167_295207d8cf8e --> ee16c284_c278_b787_3146_67666cbd8485
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  d0344643_7519_ec05_b167_295207d8cf8e --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style d0344643_7519_ec05_b167_295207d8cf8e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Example,
  ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import {
  AlertDialog,
  AlertDialogAction,
  AlertDialogCancel,
  AlertDialogContent,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogHeader,
  AlertDialogMedia,
  AlertDialogTitle,
  AlertDialogTrigger,
} from "@/registry/bases/radix/ui/alert-dialog"
import { Button } from "@/registry/bases/radix/ui/button"
import {
  Dialog,
  DialogContent,
  DialogDescription,
  DialogFooter,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from "@/registry/bases/radix/ui/dialog"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

export default function AlertDialogExample() {
  return (
    <ExampleWrapper>
      <AlertDialogBasic />
      <AlertDialogSmall />
      <AlertDialogWithMedia />
      <AlertDialogSmallWithMedia />
      <AlertDialogDestructive />
      <AlertDialogInDialog />
    </ExampleWrapper>
  )
}

function AlertDialogBasic() {
  return (
    <Example title="Basic" className="items-center">
      <AlertDialog>
        <AlertDialogTrigger asChild>
          <Button variant="outline">Default</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>
// ... (172 more lines)

Subdomains

Dependencies

  • alert-dialog
  • button
  • dialog
  • example
  • icon-placeholder

Frequently Asked Questions

What does alert-dialog-example.tsx do?
alert-dialog-example.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-example.tsx?
alert-dialog-example.tsx defines 7 function(s): AlertDialogBasic, AlertDialogDestructive, AlertDialogExample, AlertDialogInDialog, AlertDialogSmall, AlertDialogSmallWithMedia, AlertDialogWithMedia.
What does alert-dialog-example.tsx depend on?
alert-dialog-example.tsx imports 5 module(s): alert-dialog, button, dialog, example, icon-placeholder.
Where is alert-dialog-example.tsx in the architecture?
alert-dialog-example.tsx is located at apps/v4/registry/bases/radix/examples/alert-dialog-example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/examples).

Analyze Your Own Codebase

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

Try Supermodel Free