Files
react-test/docs/data/material/components/grid-legacy/ComplexGrid.tsx
how2ice 005cf56baf
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
init project
2025-12-12 14:26:25 +09:00

63 lines
1.8 KiB
TypeScript

import { styled } from '@mui/material/styles';
import Grid from '@mui/material/GridLegacy';
import Paper from '@mui/material/Paper';
import Typography from '@mui/material/Typography';
import ButtonBase from '@mui/material/ButtonBase';
const Img = styled('img')({
margin: 'auto',
display: 'block',
maxWidth: '100%',
maxHeight: '100%',
});
export default function ComplexGrid() {
return (
<Paper
sx={(theme) => ({
p: 2,
margin: 'auto',
maxWidth: 500,
flexGrow: 1,
backgroundColor: '#fff',
...theme.applyStyles('dark', {
backgroundColor: '#1A2027',
}),
})}
>
<Grid container spacing={2}>
<Grid item>
<ButtonBase sx={{ width: 128, height: 128 }}>
<Img alt="complex" src="/static/images/grid/complex.jpg" />
</ButtonBase>
</Grid>
<Grid item xs={12} sm container>
<Grid item xs container direction="column" spacing={2}>
<Grid item xs>
<Typography gutterBottom variant="subtitle1" component="div">
Standard license
</Typography>
<Typography variant="body2" gutterBottom>
Full resolution 1920x1080 JPEG
</Typography>
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
ID: 1030114
</Typography>
</Grid>
<Grid item>
<Typography sx={{ cursor: 'pointer' }} variant="body2">
Remove
</Typography>
</Grid>
</Grid>
<Grid item>
<Typography variant="subtitle1" component="div">
$19.00
</Typography>
</Grid>
</Grid>
</Grid>
</Paper>
);
}