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

alert-dialog-small.tsx — ui Source File

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

File tsx DocumentationAtlas ContentSourcing 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  7f68a3d2_37de_a347_2cb8_72ecea7ea52c["alert-dialog-small.tsx"]
  812b2224_b4d4_2373_c1c1_1b64b9496f1f["alert-dialog"]
  7f68a3d2_37de_a347_2cb8_72ecea7ea52c --> 812b2224_b4d4_2373_c1c1_1b64b9496f1f
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  7f68a3d2_37de_a347_2cb8_72ecea7ea52c --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  style 7f68a3d2_37de_a347_2cb8_72ecea7ea52c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export function AlertDialogSmall() {
  return (
    <AlertDialog>
      <AlertDialogTrigger asChild>
        <Button variant="outline">Show Dialog</Button>
      </AlertDialogTrigger>
      <AlertDialogContent size="sm">
        <AlertDialogHeader>
          <AlertDialogTitle>Allow accessory to connect?</AlertDialogTitle>
          <AlertDialogDescription>
            Do you want to allow the USB accessory to connect to this device?
          </AlertDialogDescription>
        </AlertDialogHeader>
        <AlertDialogFooter>
          <AlertDialogCancel>Don&apos;t allow</AlertDialogCancel>
          <AlertDialogAction>Allow</AlertDialogAction>
        </AlertDialogFooter>
      </AlertDialogContent>
    </AlertDialog>
  )
}

Subdomains

Functions

Dependencies

  • alert-dialog
  • button

Frequently Asked Questions

What does alert-dialog-small.tsx do?
alert-dialog-small.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in alert-dialog-small.tsx?
alert-dialog-small.tsx defines 1 function(s): AlertDialogSmall.
What does alert-dialog-small.tsx depend on?
alert-dialog-small.tsx imports 2 module(s): alert-dialog, button.
Where is alert-dialog-small.tsx in the architecture?
alert-dialog-small.tsx is located at apps/v4/examples/radix/alert-dialog-small.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free