Skip to main content

Modal

Modal.

Example Usage

<Modal
modalId={'test'}
isOpen={isOpen}
onClose={onCloseModal}
actionChildren={<InlineButton marginDirection="none" buttons={buttons} />}
titleChildren={
<Typography variant="h1">Liste des comptes déséquilibrés</Typography>
}
contentChildren={
<Typography variant="body1">
Attention vous allez devoir{' '}
<strong> supprimer toutes les écritures liées à ce dossier </strong>,
veuillez confirmer sur le bouton valider!
</Typography>
}
dialogProps={{ id: 'myId' }}
/>

Props

NameTypeRequiredDefaultDescription
onClosefunctionYesundefinedCallback function triggered when the modal is closed.
modalIdstringNoundefinedThe ID of the modal. This ID is used for accessibility purposes.
isOpenboolYes-Determines whether the modal is open or closed.
titleChildrenReact node/ stringNoundefinedContent to be displayed as the title of the modal.
actionChildrenArrayNoundefinedContent to be displayed as the actions of the modal.
contentChildrenReact nodeNoundefinedContent to be displayed within the modal's body.
childrenReact nodeNoundefinedContent to be displayed within the modal's body.
...dialogPropsobjectNo{}Other MUI Dialog props.