Dialog

Modal dialog overlay for confirmations, forms, and alerts

import { Dialog } from "@plexui/ui/components/Dialog";

Examples

Overview

Destructive confirmation

Reference

Dialog (root)

PropTypeDefaultDescription
openbooleanControlled open state
onOpenChange(open: boolean) => voidCalled when the dialog opens or closes

Dialog.Content

PropTypeDefaultDescription
widthnumber | string480Panel width
showClosebooleantrueShow close button in top-right corner
classNamestringAdditional CSS class on the panel

Dialog.Trigger — Element that opens the dialog (renders child with asChild).

Dialog.Header — Wrapper for title and description.

Dialog.Title — Accessible heading for the dialog.

Dialog.Description — Supporting text under the title.

Dialog.Footer — Footer area for action buttons.

Dialog.Close — Closes the dialog when its child is activated.