Dialog

A centered modal surface for forms, setup steps, announcements, and blocking detail panels.

Preview#

Use Dialog for content surfaces that need focus trapping and a centered modal frame. Use AlertDialog for irreversible confirms and destructive confirmation flows.

import {
  Dialog,
  DialogBody,
  DialogClose,
  DialogContent,
  DialogDescription,
  DialogFooter,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from "raft-ui";

<Dialog>
  <DialogTrigger />
  <DialogContent>
    <DialogHeader>
      <div>
        <DialogTitle />
        <DialogDescription />
      </div>
      <DialogClose />
    </DialogHeader>
    <DialogBody />
    <DialogFooter>
      <DialogClose />
    </DialogFooter>
  </DialogContent>
</Dialog>

Edit channel#

Invite human#

Add computer#

Announcement#

Create agent#

Reset agent#

Agreement#

Onboarding#

API#WIP

...props
Base UI Dialog.Root.Props
Owns open state, focus trap, Escape close, outside press, and modal behavior.
...props
Base UI Dialog.Trigger.Props
Opens the dialog. Compose a Button through render when the trigger is visible.
container
HTMLElement | RefObject | null
Custom portal container for framed previews or contained overlays.
...props
Base UI Dialog.Portal.Props
Portals the dialog to the body or a custom container.
...props
Base UI Dialog.Backdrop.Props
Backdrop behind the dialog panel while it is open.
overlay
false | DialogOverlayProps
Pass false for framed previews; otherwise renders the themed backdrop.
...props
Base UI Dialog.Popup.Props
Portaled centered dialog surface. Use className for width and one-off layouts.
...props
ComponentPropsWithRef<"div">
Header region. Defaults to title/action columns.
...props
ComponentPropsWithRef<"div">
Main content region between header and footer.
...props
Base UI Dialog.Title.Props
Accessible dialog title.
...props
Base UI Dialog.Description.Props
Accessible supporting description.
variant
Button variant
Button styling when using the default themed icon button.
size
Button size
Button size when using the default themed icon button.
...props
Base UI Dialog.Close.Props
Closes the dialog. Defaults to a themed icon button; pass render for footer actions.