Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1442

How to show 2 Boxes in front of one Tall Box using MUI Stack or flex Box

$
0
0

I am working on a dashboard layout where widgets can be of different size.I am using MUI Stack. I have a requirement where if I add a 1 tall widget (double the height of small widget) and 2 small widgets, I should show them side by side as shown in below image and this is dynamic we can add n no of widgets having combination of small and tall and it should adjust all side by side without leaving any empty spaceenter image description here

<Stack direction="row" spacing={2}><Box sx={{ marginTop: 1 }} flexGrow={1}> 1 </Box><Box sx={{ marginTop: 1 }} flexGrow={1}> 2 </Box><Box sx={{ marginTop: 1 }} flexGrow={1}> 3</Box></Stack>

Viewing all articles
Browse latest Browse all 1442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>