Component evidence
Reusable modal dialog component for React with Radix UI primitives and Tailwind styling.
// Source: https://github.com/suitedaces/dorabot | License: MIT | Copyright 2026 Ishan Nagpal
// Provided via justclaw.it.com; keep this notice with the code.
import * as React from "react"
import { Dialog as DialogPrimitive } from "radix-ui"
import { cn } from "@/lib/utils"
function Dialog({
...props
}: React.ComponentProps<typeof DialogPrimitive.Root>) {
return <DialogPrimitive.Root data-slot="dialog" {...props} />
}
function DialogTrigger({
...props
}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {
return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />
}
function DialogPortal({
...props
}: React.ComponentProps<typeof DialogPrimitive.Portal>) {
return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />
}
function DialogOverlay({
c
... (truncated -- full source via MCP)