Aspect-ratio We can assign width and height to the element.
function Square1() {
return (
<div css={{
width: '200px',
height: '300px',
background: 'red'
}}>
div1
</div>
)
}
Or can assign one side and add aspect-ratio.
function Square2() {
return (
<div css={{
width: '200px',
aspectRatio: '2/3',
background: 'red'
}}>
div1
</div>
)
}