Skip to content

Dialog

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

Basic Usage

Example

You can customize the footer actions.

Example

Fullscreen

Dialog can cover the entire screen.

Example

Draggable & Resizable

Dialog can be dragged by the header and resized.

Example

Theming

Global Customization (BrConfigProvider)

You can override default CSS variables via the theme prop of BrConfigProvider.

Example

API

BrDialog

NameTypeDefaultDescription
openbooleanundefinedThe controlled open state of the dialog.
defaultOpenbooleanundefinedThe open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
modalbooleantrueThe modality of the dialog. When set to true, interaction with outside elements will be disabled (including scroll lock). Set to false if you want to keep the page scrollable.

BrDialogContent

NameTypeDefaultDescription
classstringundefinedAdditional classes to apply to the content.
showClosebooleantrueWhether to show the close button.
fullscreenbooleanfalseWhether to render in fullscreen mode.
draggablebooleanfalseWhether the dialog is draggable (drag handle is the header).
resizablebooleanfalseWhether the dialog is resizable.

BrDialogTrigger

NameTypeDefaultDescription
asChildbooleanfalseChange the default rendered element for the one passed as a child, merging their props and behavior.

BrDialogTitle

NameTypeDefaultDescription
asChildbooleanfalseChange the default rendered element for the one passed as a child, merging their props and behavior.

BrDialogDescription

NameTypeDefaultDescription
asChildbooleanfalseChange the default rendered element for the one passed as a child, merging their props and behavior.