Home / Function/ AlertDialogDemo() — ui Function Reference

AlertDialogDemo() — ui Function Reference

Architecture documentation for the AlertDialogDemo() function in alert-dialog-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  0ea2ac9e_1a25_bacf_46b3_79bec6060832["AlertDialogDemo()"]
  c0c3b414_524e_0d34_6d0c_40f560e9d09b["alert-dialog-demo.tsx"]
  0ea2ac9e_1a25_bacf_46b3_79bec6060832 -->|defined in| c0c3b414_524e_0d34_6d0c_40f560e9d09b
  style 0ea2ac9e_1a25_bacf_46b3_79bec6060832 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(internal)/sink/components/alert-dialog-demo.tsx lines 17–81

export function AlertDialogDemo() {
  return (
    <div className="flex flex-wrap gap-4">
      <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>
        </AlertDialogContent>
      </AlertDialog>
      <AlertDialog>
        <AlertDialogTrigger asChild>
          <Button variant="outline">With Media</Button>
        </AlertDialogTrigger>
        <AlertDialogContent>
          <AlertDialogHeader>
            <AlertDialogMedia>
              <TrashIcon className="size-8" />
            </AlertDialogMedia>
            <AlertDialogTitle>Delete this item?</AlertDialogTitle>
            <AlertDialogDescription>
              This action cannot be undone. This will permanently delete the
              item from your account.
            </AlertDialogDescription>
          </AlertDialogHeader>
          <AlertDialogFooter>
            <AlertDialogCancel>Cancel</AlertDialogCancel>
            <AlertDialogAction variant="destructive">Delete</AlertDialogAction>
          </AlertDialogFooter>
        </AlertDialogContent>
      </AlertDialog>
      <AlertDialog>
        <AlertDialogTrigger asChild>
          <Button variant="outline">Small Size</Button>
        </AlertDialogTrigger>
        <AlertDialogContent size="sm">
          <AlertDialogHeader>
            <AlertDialogMedia>
              <TrashIcon className="size-8" />
            </AlertDialogMedia>
            <AlertDialogTitle>Delete this item?</AlertDialogTitle>
            <AlertDialogDescription>
              This action cannot be undone.
            </AlertDialogDescription>
          </AlertDialogHeader>
          <AlertDialogFooter>
            <AlertDialogCancel>Cancel</AlertDialogCancel>
            <AlertDialogAction variant="destructive">Delete</AlertDialogAction>
          </AlertDialogFooter>
        </AlertDialogContent>
      </AlertDialog>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does AlertDialogDemo() do?
AlertDialogDemo() is a function in the ui codebase, defined in apps/v4/app/(internal)/sink/components/alert-dialog-demo.tsx.
Where is AlertDialogDemo() defined?
AlertDialogDemo() is defined in apps/v4/app/(internal)/sink/components/alert-dialog-demo.tsx at line 17.

Analyze Your Own Codebase

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

Try Supermodel Free