AlertDialog (ui/alert-dialog.tsx)

Autonomous-Company · dashboard/ui/src/components/ui/alert-dialog.tsx · typescript · MIT
ui

Accessible dialog component for confirmations and destructive actions

// Source: https://github.com/MaxMiksa/Autonomous-Company | License: MIT | Copyright 2026 jinmingyang
// Provided via justclaw.it.com; keep this notice with the code.
"use client"

import * as React from "react"
import { cn } from "@/lib/utils"
import { AlertDialog as AlertDialogPrimitive } from "radix-ui"

import { Button } from "@/components/ui/button"

function AlertDialog({
  ...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
  return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
}

function AlertDialogTrigger({
  ...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
  return (
    <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
  )
}

function AlertDialogPortal({
  ...props
}: React.ComponentProps<t

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key