MessageBoxProps Interface

Properties for the MessageBox component

Extends

Properties

Name Type Description
buttonCluster DialogButtonDef[] List of DialogButtonDef objects specifying buttons and associated onClick events  
children ReactNode | undefined Message content  
contentClassName string | undefined Custom CSS class name for the content  
contentStyle CSSProperties | undefined Custom CSS Style for the content  
height string | number initial height of dialog.  
minHeight number | undefined minimum height that the dialog may be resized to.  
minWidth number | undefined minimum width that the dialog may be resized to.  
modal boolean | undefined Whether to show background overlay.  
onClose () => void | undefined    
onEscape () => void | undefined    
opened boolean whether to show dialog or not  
severity MessageSeverity Severity of MessageBox  
title string | ReactElement<any, string | JSXElementConstructor<any>> Title to show in title bar of dialog  
width string | number initial width of dialog.  

Inherited properties

Name Type Inherited from Description
className string | undefined CommonProps Custom CSS class name
itemId string | undefined CommonProps Optional unique identifier for item.
style CSSProperties | undefined CommonProps Custom CSS style properties

Defined in

Last Updated: 13 May, 2024