Aspect Ratio
Displays content such as images, video, and maps inside a box that keeps a fixed aspect ratio as its width changes.
16 : 9
Installation
Bash
Usage
API reference
AspectRatio
Extends div — the ratio is applied via CSS aspect-ratio, so the
element needs a constrained width from its parent.
| Prop | Type | Default |
|---|---|---|
ratio | number | — required |