allowTouchBodyScroll boolean
Allow body scroll on content and overlay on touch devices. Changing after mounting has no effect.
className string
Optional class name to be added to the root class
componentRef IRefObject<IModal>
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
dragOptions IDragOptions
The options to make the modal draggable
enableAriaHiddenSiblings boolean
Puts aria-hidden=true on all non-ancestors of the current modal, for screen readers. This is an experimental feature that will be graduated to default behavior after testing. This flag will be removed with the next major release.
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.
isModeless boolean
Whether the dialog should be modeless (e.g. not dismiss when focusing/clicking outside of the dialog). if true: isBlocking is ignored, there will be no overlay (isDarkOverlay is ignored), isClickableOutsideFocusTrap is true, and forceFocusInsideTrap is false
isOpen boolean
Whether the dialog is displayed.
layerProps ILayerProps
Defines an optional set of props to be passed through to Layer
onDismiss (ev?: React.MouseEvent<HTMLButtonElement>) => any
A callback function for when the Modal is dismissed light dismiss, before the animation completes.
onDismissed () => any
A callback function which is called after the Modal is dismissed and the animation is complete.
onLayerDidMount () => void
A callback function for when the Modal content is mounted on the overlay layer
overlay IOverlayProps
Defines an optional set of props to be passed through to Overlay
scrollableContentClassName string
Optional override for scrollable content class
styles IStyleFunctionOrObject<IModalStyleProps, IModalStyles>
Call to provide customized styling that will layer on top of the variant rules.
subtitleAriaId string
ARIA id for the subtitle of the Modal, if any
theme ITheme
Theme provided by High-Order Component.
titleAriaId string
ARIA id for the title of the Modal, if any
topOffsetFixed boolean
Whether the modal should have top offset fixed once opened and expand from the bottom only when the content changes dynamically.