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 - ) => ( - - - ) + ); + return ( + + {scrollableOverlay ? ( + + {content} + + ) : ( + <> + + {content} + + )} + + ); + } ); DialogContent.displayName = DialogPrimitive.Content.displayName;