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#

Edit channel actions#

Invite human#

Add computer#

Attachment preview#

Announcement#

Create channel#

Create agent#

Reset agent#

Agreement#

Onboarding#

API#WIP

PropTypeDefaultDescription
...propsBase UI Dialog.Root.PropsOwns open state, focus trap, Escape close, outside press, and modal behavior.
PropTypeDefaultDescription
...propsBase UI Dialog.Trigger.PropsOpens the dialog. Compose a Button through render when the trigger is visible.
PropTypeDefaultDescription
containerHTMLElement | RefObject | nullCustom portal container for framed previews or contained overlays.
...propsBase UI Dialog.Portal.PropsPortals the dialog to the body or a custom container.
PropTypeDefaultDescription
...propsBase UI Dialog.Backdrop.PropsBackdrop behind the dialog panel while it is open.
PropTypeDefaultDescription
overlayfalse | DialogOverlayPropsPass false for framed previews; otherwise renders the themed backdrop.
...propsBase UI Dialog.Popup.PropsPortaled centered dialog surface. Use className for width and one-off layouts.
PropTypeDefaultDescription
...propsComponentPropsWithRef<"div">Header region. Defaults to title/action columns.
PropTypeDefaultDescription
...propsComponentPropsWithRef<"div">Main content region between header and footer.
PropTypeDefaultDescription
...propsBase UI Dialog.Title.PropsAccessible dialog title.
PropTypeDefaultDescription
...propsBase UI Dialog.Description.PropsAccessible supporting description.
PropTypeDefaultDescription
variantButton variantButton styling when using the default themed icon button.
sizeButton sizeButton size when using the default themed icon button.
...propsBase UI Dialog.Close.PropsCloses the dialog. Defaults to a themed icon button; pass render for footer actions.