16:9 Aspect Ratio
React
Usage
import { AspectRatio } from '@zalify-ui/react'
<AspectRatio ratio={16 / 9}>
<img src="image.jpg" alt="Example" />
</AspectRatio>
Props
| Prop | Default | Type |
|---|---|---|
ratio | ConditionalValue<number>The aspect ratio of the container (e.g. 16/9, 4/3). |