aspectRatio

inline fun Style.aspectRatio(aspectRatio: Float): Style

Defines an aspect ratio for this component, meaning the ratio of width to height. This means if aspectRatio is set to 2 and width is calculated to be 50px, then height will be 100px.

Note: This property is not part of the flexbox standard.