diff --git a/packages/raystack/components/dialog/dialog.tsx b/packages/raystack/components/dialog/dialog.tsx
index fd456fd4..6d3642ee 100644
--- a/packages/raystack/components/dialog/dialog.tsx
+++ b/packages/raystack/components/dialog/dialog.tsx
@@ -21,6 +21,7 @@ export interface DialogContentProps
overlayClassName?: string;
overlayStyle?: React.CSSProperties;
width?: string | number;
+ scrollableOverlay?: boolean;
}
const DialogContent = forwardRef<
@@ -37,21 +38,23 @@ const DialogContent = forwardRef<
overlayClassName,
overlayStyle,
width,
+ scrollableOverlay = false,
...props
},
ref
- ) => (
-
-
+ ) => {
+ const overlayProps: DialogPrimitive.DialogOverlayProps = {
+ className: cx(
+ styles.dialogOverlay,
+ overlayClassName,
+ overlayBlur && styles.overlayBlur
+ ),
+ style: overlayStyle,
+ 'aria-hidden': 'true',
+ role: 'presentation'
+ };
+
+ const content = (
{children}
-
- )
+ );
+ return (
+
+ {scrollableOverlay ? (
+
+ {content}
+
+ ) : (
+ <>
+
+ {content}
+ >
+ )}
+
+ );
+ }
);
DialogContent.displayName = DialogPrimitive.Content.displayName;