Skip to content

Commit 2a389c7

Browse files
authored
Masonry: Fix the props on Masonry V2 (#4052)
1 parent 0308131 commit 2a389c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/gestalt/src/MasonryV2.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ type Props<T> = {
176176
* This is an experimental prop and may be removed or changed in the future
177177
*/
178178
_earlyBailout?: (columnSpan: number) => number;
179+
/**
180+
* Experimental flag to enable new multi column position layout algorithm
181+
*/
182+
_multiColPositionAlgoV2?: boolean;
179183
};
180184

181185
type MasonryRef = {
@@ -674,6 +678,7 @@ function Masonry<T>(
674678
_dynamicHeights,
675679
_dynamicHeightsV2Experiment,
676680
_earlyBailout,
681+
_multiColPositionAlgoV2,
677682
}: Props<T>,
678683
ref:
679684
| {
@@ -826,6 +831,7 @@ function Masonry<T>(
826831
_getColumnSpanConfig,
827832
_getResponsiveModuleConfigForSecondItem,
828833
_earlyBailout,
834+
_multiColPositionAlgoV2,
829835
});
830836
useEffect(() => {
831837
maxHeightRef.current = height;

0 commit comments

Comments
 (0)