Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
31 lines
759 B
JavaScript
31 lines
759 B
JavaScript
import * as React from 'react';
|
|
import Box from '@mui/material/Box';
|
|
import { styled } from '@mui/material/styles';
|
|
import Paper from '@mui/material/Paper';
|
|
import Masonry from '@mui/lab/Masonry';
|
|
|
|
const heights = [150, 30];
|
|
|
|
const Item = styled(Paper)(({ theme }) => ({
|
|
...theme.typography.body2,
|
|
color: theme.palette.text.secondary,
|
|
border: '1px solid black',
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
}));
|
|
|
|
export default function HeavyMasonry() {
|
|
return (
|
|
<Box sx={{ width: 500, minHeight: 393 }}>
|
|
<Masonry columns={4} spacing={1}>
|
|
{heights.map((height, index) => (
|
|
<Item key={index} sx={{ height }}>
|
|
{index + 1}
|
|
</Item>
|
|
))}
|
|
</Masonry>
|
|
</Box>
|
|
);
|
|
}
|