Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Ssupports adding any dom content to the body of the modal
*/
children: PropTypes.node,
/**
* Triggers when the modal closes
*/
onClose: PropTypes.func,
/**
* Modal is visible when true
*/
open: PropTypes.bool,
/**
* Style of the modal shell
*/
style: PropTypes.oneOf(VanillaModal.AvailableStyles),
/**
* Title of the modal
*/
title: PropTypes.string
};
Modal.defaultProps = {
onClose: () => {}
};
/**
* Triggers when you click the close button
*/
onCloseClick: PropTypes.func,
/**
* Triggers when you click the overlay behind the modal
*/
onOverlayClick: PropTypes.func,
/**
* Modal is visible when true
*/
open: PropTypes.bool,
/**
* Style of the modal shell
*/
style: PropTypes.oneOf(VanillaModal.AvailableStyles),
/**
* Title of the modal
*/
title: PropTypes.string
};
ModalAdapter.defaultProps = {
buttons: []
};