AspectRatio
Maintain responsive consistent width/height ratio
Import
Source
Docs
Package
Usage
AspectRatio allows to maintain consistent width/height ratio. It can be used to display images, maps, videos and other media.
Map embed
Video embed
AspectRatio component props
Name | Type | Description |
---|---|---|
ratio * | number | Aspect ratio, e.g. 16 / 9, 4 / 3, 1920 / 1080 |