Home / Function/ AlertDialogDestructive() — ui Function Reference

AlertDialogDestructive() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9d07c679_7a54_1839_e1e7_92403e49e232["AlertDialogDestructive()"]
  57adc8f6_ea99_193c_a1cb_82dcb99da3ee["alert-dialog-destructive.tsx"]
  9d07c679_7a54_1839_e1e7_92403e49e232 -->|defined in| 57adc8f6_ea99_193c_a1cb_82dcb99da3ee
  style 9d07c679_7a54_1839_e1e7_92403e49e232 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/alert-dialog-destructive.tsx lines 16–40

export function AlertDialogDestructive() {
  return (
    <AlertDialog>
      <AlertDialogTrigger asChild>
        <Button variant="destructive">Delete Chat</Button>
      </AlertDialogTrigger>
      <AlertDialogContent size="sm">
        <AlertDialogHeader>
          <AlertDialogMedia className="bg-destructive/10 text-destructive dark:bg-destructive/20 dark:text-destructive">
            <Trash2Icon />
          </AlertDialogMedia>
          <AlertDialogTitle>Delete chat?</AlertDialogTitle>
          <AlertDialogDescription>
            This will permanently delete this chat conversation. View{" "}
            <a href="#">Settings</a> delete any memories saved during this chat.
          </AlertDialogDescription>
        </AlertDialogHeader>
        <AlertDialogFooter>
          <AlertDialogCancel variant="outline">Cancel</AlertDialogCancel>
          <AlertDialogAction variant="destructive">Delete</AlertDialogAction>
        </AlertDialogFooter>
      </AlertDialogContent>
    </AlertDialog>
  )
}

Subdomains

Frequently Asked Questions

What does AlertDialogDestructive() do?
AlertDialogDestructive() is a function in the ui codebase, defined in apps/v4/examples/radix/alert-dialog-destructive.tsx.
Where is AlertDialogDestructive() defined?
AlertDialogDestructive() is defined in apps/v4/examples/radix/alert-dialog-destructive.tsx at line 16.

Analyze Your Own Codebase

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

Try Supermodel Free