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

alert-dialog-small-media.tsx — ui Source File

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

File tsx DocumentationAtlas Changelog 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  ca425de2_b829_93ad_dfd2_e8276b8ec361["alert-dialog-small-media.tsx"]
  2b692fe5_b785_687f_b967_f7269e065256["alert-dialog"]
  ca425de2_b829_93ad_dfd2_e8276b8ec361 --> 2b692fe5_b785_687f_b967_f7269e065256
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  ca425de2_b829_93ad_dfd2_e8276b8ec361 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  ca425de2_b829_93ad_dfd2_e8276b8ec361 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style ca425de2_b829_93ad_dfd2_e8276b8ec361 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export function AlertDialogSmallWithMedia() {
  return (
    <AlertDialog>
      <AlertDialogTrigger
        render={<Button variant="outline">Show Dialog</Button>}
      />

      <AlertDialogContent size="sm">
        <AlertDialogHeader>
          <AlertDialogMedia>
            <BluetoothIcon />
          </AlertDialogMedia>
          <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

Dependencies

  • alert-dialog
  • button
  • lucide-react

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free