Home / Function/ AlertDialogCancel() — ui Function Reference

AlertDialogCancel() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5bad4c59_563d_0249_1109_c69deedaaadb["AlertDialogCancel()"]
  639898ee_f932_0434_45a5_dde95c7f055f["alert-dialog.tsx"]
  5bad4c59_563d_0249_1109_c69deedaaadb -->|defined in| 639898ee_f932_0434_45a5_dde95c7f055f
  style 5bad4c59_563d_0249_1109_c69deedaaadb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/alert-dialog.tsx lines 145–160

function AlertDialogCancel({
  className,
  variant = "outline",
  size = "default",
  ...props
}: AlertDialogPrimitive.Close.Props &
  Pick<React.ComponentProps<typeof Button>, "variant" | "size">) {
  return (
    <AlertDialogPrimitive.Close
      data-slot="alert-dialog-cancel"
      className={cn("cn-alert-dialog-cancel", className)}
      render={<Button variant={variant} size={size} />}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does AlertDialogCancel() do?
AlertDialogCancel() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/alert-dialog.tsx.
Where is AlertDialogCancel() defined?
AlertDialogCancel() is defined in apps/v4/registry/bases/base/ui/alert-dialog.tsx at line 145.

Analyze Your Own Codebase

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

Try Supermodel Free