@@ -45,6 +45,7 @@ const BottomSheetModalComponent = forwardRef<
45
45
snapPoints,
46
46
enablePanDownToClose = true ,
47
47
animateOnMount = true ,
48
+ containerComponent : ContainerComponent = React . Fragment ,
48
49
49
50
// callbacks
50
51
onChange : _providedOnChange ,
@@ -375,21 +376,23 @@ const BottomSheetModalComponent = forwardRef<
375
376
handleOnUpdate = { handlePortalRender }
376
377
handleOnUnmount = { handlePortalOnUnmount }
377
378
>
378
- < BottomSheet
379
- { ...bottomSheetProps }
380
- ref = { bottomSheetRef }
381
- key = { key }
382
- index = { index }
383
- snapPoints = { snapPoints }
384
- enablePanDownToClose = { enablePanDownToClose }
385
- animateOnMount = { animateOnMount }
386
- containerHeight = { containerHeight }
387
- containerOffset = { containerOffset }
388
- onChange = { handleBottomSheetOnChange }
389
- onClose = { handleBottomSheetOnClose }
390
- children = { typeof Content === 'function' ? Content ( { data } ) : Content }
391
- $modal = { true }
392
- />
379
+ < ContainerComponent >
380
+ < BottomSheet
381
+ { ...bottomSheetProps }
382
+ ref = { bottomSheetRef }
383
+ key = { key }
384
+ index = { index }
385
+ snapPoints = { snapPoints }
386
+ enablePanDownToClose = { enablePanDownToClose }
387
+ animateOnMount = { animateOnMount }
388
+ containerHeight = { containerHeight }
389
+ containerOffset = { containerOffset }
390
+ onChange = { handleBottomSheetOnChange }
391
+ onClose = { handleBottomSheetOnClose }
392
+ children = { typeof Content === 'function' ? Content ( { data } ) : Content }
393
+ $modal = { true }
394
+ />
395
+ </ ContainerComponent >
393
396
</ Portal >
394
397
) : null ;
395
398
} ) ;
0 commit comments