9.2k

Dialog

A popup that opens on top of the entire page.

API Reference

Installation

Usage

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.

DialogPopup

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

DialogHeader

Container for the dialog title and description.

DialogFooter

Footer section for action buttons.

Example:

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.

Example:

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

Open from a Menu

Dialog with scroll inside

Nested Dialogs

Close Confirmation

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).