className string
Optional override class name
closeButtonAriaLabel string
Label to be passed to to aria-label of close button
componentRef IRefObject<IDialogContent>
Optional callback to access the IDialogContent interface. Use this instead of ref for accessing the public methods and properties of the component.
draggableHeaderClassName string
The classname for when the header is draggable
isMultiline boolean
Is inside a multiline wrapper
onDismiss (ev?: React.MouseEvent<HTMLButtonElement>) => any
Callback for when the Dialog is dismissed from the close button or light dismiss, before the animation completes.
responsiveMode ResponsiveMode
Responsive mode passed in from decorator.
showCloseButton boolean
Show an 'x' close button in the upper-right corner
styles IStyleFunctionOrObject<IDialogContentStyleProps, IDialogContentStyles>
Call to provide customized styling that will layer on top of the variant rules
subText string
The subtext to display in the dialog
subTextId string
The Id for subText container
theme ITheme
Theme provided by HOC.
title string | JSX.Element
The title text to display at the top of the dialog.
titleId string
The Id for title container
titleProps React.HTMLAttributes<HTMLDivElement>
The props for title container.
topButtonsProps IButtonProps[]
Other top buttons that will show up next to the close button
type DialogType
The type of Dialog to display.
className string
Optional override class name
componentRef IRefObject<IDialogFooter>
Gets the component ref.
styles IStyleFunctionOrObject<IDialogFooterStyleProps, IDialogFooterStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
ariaDescribedById string
Optional id for aria-DescribedBy
ariaLabelledById string
Optional id for aria-LabelledBy
className string
Optional class name to be added to the root class
componentRef IRefObject<IDialog>
Optional callback to access the IDialog interface. Use this instead of ref for accessing the public methods and properties of the component.
containerClassName string
Optional override for container class
contentClassName string
Optional override content class
dialogContentProps IDialogContentProps
Props to be passed through to Dialog Content
hidden boolean
Whether the dialog is hidden.
isBlocking boolean
Whether the dialog can be light dismissed by clicking outside the dialog (on the overlay).
isDarkOverlay boolean
Whether the overlay is dark themed.
isOpen boolean
Whether the dialog is displayed. Deprecated, use hidden
instead.
maxWidth ICSSRule | ICSSPixelUnitRule
Sets the maximum width for the dialog. It limits the width property to be larger than the value specified in max-width.
minWidth ICSSRule | ICSSPixelUnitRule
Sets the minimum width of the dialog. It limits the width property to be not smaller than the value specified in min-width.
modalProps IModalProps
Props to be passed through to Modal
onDismiss (ev?: React.MouseEvent<HTMLButtonElement>) => any
A callback function for when the Dialog is dismissed from the close button or light dismiss. Can also be specified separately in content and modal.
onDismissed () => any
A callback function which is called after the Dialog is dismissed and the animation is complete.
onLayerDidMount () => void
A callback function for when the Dialog content is mounted on the overlay layer
onLayerMounted () => void
Deprecated at 0.81.2, use onLayerDidMount
instead.
styles IStyleFunctionOrObject<IDialogStyleProps, IDialogStyles>
Call to provide customized styling that will layer on top of the variant rules
subText string
The subtext to display in the dialog.
theme ITheme
Theme provided by HOC.
title string | JSX.Element
The title text to display at the top of the dialog.
topButtonsProps IButtonProps[]
Other top buttons that will show up next to the close button
type DialogType
The type of Dialog to display.