Dialog
A modal dialog is a message box or child window that requires user interaction before returning to the parent window. These boxes appear on top of the open parent window that is currently displayed on the screen.
Name | Type | Description | Default |
---|---|---|---|
isCloseVisible | boolean | If true, the close button will be visible. | true |
onCloseClick | () => void | This function will be called when the user clicks the close button. The responsibility of hiding the dialog lies with the user. | - |
onBackgroundClick | () => void | This function will be called when the on the background of the modal. The responsibility of hiding the dialog lies with the user. | - |
overlay | boolean | If true, the dialog will be displayed over a darker background that covers the content behind. | true |
Required | React.ReactNode | Area within the dialog that can be used to render custom content. We strongly encourage users to not change the tabindex of the inner components or elements. This can lead to unpredictable behaviour for keyboard users, affecting the order of focus and focus locking within the dialog. | - |
tabIndex | number | Value of the tabindex applied to the close button. Note that values greater than 0 are strongly discouraged. It can lead to unexpected behaviours with the focus within the dialog. | 0 |