Aspect Ratio

JavaScript-free media container with a configurable or intrinsic aspect ratio

View documentation

Default ratio (16/9)

Wrapping media in a fixed aspect box.

Custom ratios

Any CSS aspect-ratio value works.

Width + height props

Intrinsic dimensions win over the ratio prop.