Dialog

A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.

Usage

Example

Size

Without a size, the dialog fills the viewport width up to 28rem (max-w-md) on wider screens. The sizes below apply on wider screens.

Close button

DialogContent shows a close button in the corner by default. Pass show_close_button: false to hide it, and show_close_button: true on DialogFooter to add a Close button to the footer.

Installation

Components

ComponentBuilt usingSource
DialogPhlex
DialogContentPhlex
DialogDescriptionPhlex
DialogDocsPhlex
DialogFooterPhlex
DialogHeaderPhlex
DialogMiddlePhlex
DialogTitlePhlex
DialogTriggerPhlex
DialogControllerStimulus JS