Modal and Drawer components
opened state is controlled by opened
prop. You can use it to prevent modal from closing by setting
it to true
. For example, it can be useful if you have an async operation inside the modal and want to
prevent user from closing it before the operation is finished: