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 UIPrimitives 5 imports 7 functions

Entity Profile

Dependency Diagram

graph LR
  f00e6683_5ad1_57ce_ba63_874d2425eaaf["alert-dialog-example.tsx"]
  f56be340_a522_c6f7_dec3_5906873d14c8["example"]
  f00e6683_5ad1_57ce_ba63_874d2425eaaf --> f56be340_a522_c6f7_dec3_5906873d14c8
  0dfc263e_878b_3500_d535_fddc0e0dc915["alert-dialog"]
  f00e6683_5ad1_57ce_ba63_874d2425eaaf --> 0dfc263e_878b_3500_d535_fddc0e0dc915
  7328fa0a_98b6_fe77_42fd_0d1582b24604["button"]
  f00e6683_5ad1_57ce_ba63_874d2425eaaf --> 7328fa0a_98b6_fe77_42fd_0d1582b24604
  bf79f9bb_684a_daf2_047f_c53b74f509e8["dialog"]
  f00e6683_5ad1_57ce_ba63_874d2425eaaf --> bf79f9bb_684a_daf2_047f_c53b74f509e8
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  f00e6683_5ad1_57ce_ba63_874d2425eaaf --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style f00e6683_5ad1_57ce_ba63_874d2425eaaf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Example,
  ExampleWrapper,
} from "@/registry/bases/base/components/example"
import {
  AlertDialog,
  AlertDialogAction,
  AlertDialogCancel,
  AlertDialogContent,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogHeader,
  AlertDialogMedia,
  AlertDialogTitle,
  AlertDialogTrigger,
} from "@/registry/bases/base/ui/alert-dialog"
import { Button } from "@/registry/bases/base/ui/button"
import {
  Dialog,
  DialogContent,
  DialogDescription,
  DialogFooter,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from "@/registry/bases/base/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
          render={<Button variant="outline">Default</Button>}
        />
        <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>
// ... (171 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, UIPrimitives 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/base/examples/alert-dialog-example.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/examples).

Analyze Your Own Codebase

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

Try Supermodel Free