diff --git a/packages/components/src/components/NewModal/NewModal.tsx b/packages/components/src/components/NewModal/NewModal.tsx index 9d392a20ead..c422161aea2 100644 --- a/packages/components/src/components/NewModal/NewModal.tsx +++ b/packages/components/src/components/NewModal/NewModal.tsx @@ -125,6 +125,7 @@ type NewModalProps = AllowedFrameProps & { bottomContent?: ReactNode; onBackClick?: () => void; onCancel?: () => void; + isBackdropCancelable?: boolean; icon?: IconName; alignment?: NewModalAlignment; size?: NewModalSize; @@ -237,12 +238,15 @@ const NewModalBase = (props: NewModalProps) => ( ); -const NewModal = (props: NewModalProps) => { - const { alignment, onCancel } = props; +const NewModal = ({ isBackdropCancelable = true, ...rest }: NewModalProps) => { + const { alignment, onCancel } = rest; return ( - - + + ); };