Skip to content

Instantly share code, notes, and snippets.

@Azer5C74
Last active June 5, 2022 11:02
Show Gist options
  • Save Azer5C74/167236234e42f08570b6c4c26bd3f01d to your computer and use it in GitHub Desktop.
Save Azer5C74/167236234e42f08570b6c4c26bd3f01d to your computer and use it in GitHub Desktop.
Resizable image importation, in ReactJS using material ui components.
<Box
component="img"
sx={{
height: 233,
width: 350,
maxHeight: { xs: 233, md: 167 },
maxWidth: { xs: 350, md: 250 },
}}
alt="The house from the offer."
src="https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&w=350&dpr=2"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment