Files
react-test/docs/data/joy/components/aspect-ratio/CustomRatio.tsx

17 lines
392 B
TypeScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import AspectRatio from '@mui/joy/AspectRatio';
import Typography from '@mui/joy/Typography';
export default function CustomRatio() {
return (
<AspectRatio
variant="outlined"
ratio="4/3"
sx={{ width: 300, bgcolor: 'background.level2', borderRadius: 'md' }}
>
<Typography level="h2" component="div">
4/3
</Typography>
</AspectRatio>
);
}