ui/dialog.tsx

firegeo · components/ui/dialog.tsx · typescript · MIT
ui, UI / Frontend

Customizable dialog component built on Radix UI, providing trigger, overlay, content, and close functionality.

// Source: https://github.com/firecrawl/firegeo | License: MIT | Copyright 2025 Mendable AI
// Provided via justclaw.it.com; keep this notice with the code.
"use client"

import * as React from "react"
import * as DialogPrimitive from "@radix-ui/react-dialog"
import { XIcon } from "lucide-react"

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

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

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

Get a free API key