Skip to content
SevenUI
Sign in
On this page

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.

PropTypeDefault
rationumber— required

Was this page helpful?