Skip to content

Dialog

Opens a focused popup window over the main page, allowing users to complete a dedicated task or view details without losing page context.

6.1 KB
•
Updated on September 20, 2026

Installation

Bash

Usage

Code
Code

Anatomy

Code

Features

Dialog with a bare footer (variant="bare"), removing the default border and background styling.

Accessibility

Keyboard Interactions

API Reference

Dialog

Root component. Alias for Dialog.Root from Base UI.

DialogTrigger

Trigger button that opens the dialog. Alias for Dialog.Trigger from Base UI.

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:

Code

DialogTitle

Title component. Alias for Dialog.Title from Base UI.

DialogDescription

Description component. Alias for Dialog.Description from Base UI.

DialogPanel

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

Example:

Code

DialogClose

Close button component. Alias for Dialog.Close from Base UI.

DialogPortal

Portal component for rendering outside the DOM hierarchy. Alias for Dialog.Portal from Base UI.

DialogBackdrop

Backdrop/overlay component. Also exported as DialogOverlay. Alias for Dialog.Backdrop from Base UI.

DialogViewport

Viewport component for positioning. Alias for Dialog.Viewport from Base UI.

Examples

Dialog opened from menu
Nested dialogs
Dialog with close confirmation
Dialog with long content