studio
Components
Theme proof
Brand
Previews
Landing pages
youspot
Components
/
AspectRatio
AspectRatio
Locks a child to a ratio; images and videos cover the box.
Playground
ratio
16/9
16/9
4/3
1/1
3/4
16/9
<AspectRatio ratio={16/9}><img src="…" /></AspectRatio>