ZBMui

Dialog

View markdown

A popup that opens on top of the entire page.

Installation

components/ui/dialog.tsx

Usage

Examples

Backdrop variants

The backdrop of the dialog can be customized using the backdropVariant prop on DialogPopup. The available variants are blur (default), opaque, and transparent.

Change the position of the popup by passing a position prop to DialogPopup. The default position is center. Other options include top, bottom, top-center, and bottom-center.

No close button

Scrollable content

Scroll Area (Default)

Native scrollbar

No scrollbar

Nested dialogs

Show parent dialog of nested dialog

To show the parent dialog when a nested dialog is open, pass the showNestedParent prop to DialogPopup. This will keep the parent dialog visible while the nested dialog is open.

Api Reference

Dialog Backdrop props

Component type props
Prop
Type
Default
Expand prop details

Dialog Viewport props

Component type props
Prop
Type
Default
Expand prop details

Dialog Popup props

Component type props
Prop
Type
Default
Expand prop details

Dialog Body props

Component type props
Prop
Type
Default
Expand prop details

Component type props
Prop
Type
Default
Expand prop details

ZBMui

Built by the ZBM.

© 2026 ZBM ui. All rights reserved.