Dialog

A popup that opens on top of the entire page.

Usage

API Reference

Dialog

Root component.

DialogTrigger

Trigger button that opens the dialog.

DialogCreateHandle

Creates a handle for detached dialog triggers. Use it when the trigger and popup need to be coordinated across different parts of the tree.

DialogPopup

Popup container that displays the dialog content. Also exported as DialogContent.

DialogHeader

Container for the dialog title and description. Supports the render prop for polymorphic composition (e.g. render={<Link href="/" />}).

DialogFooter

Footer section for action buttons. Supports the render prop for polymorphic composition.

Example:

DialogTitle

Title component.

DialogDescription

Description component.

DialogPanel

Scrollable content container. Automatically wraps content in a ScrollArea component. Supports the render prop for polymorphic composition.

Example:

DialogClose

Close button component.

DialogPortal

Portal component for rendering outside the DOM hierarchy.

DialogBackdrop

Backdrop/overlay component. Also exported as DialogOverlay.

DialogViewport

Viewport component for positioning.

Examples

Open from a Menu

Dialog with scroll inside

Nested Dialogs

Close Confirmation