Aspect Ratio
Displays content within a desired ratio.
Usage
Ratios
1:1
4:3
21:9
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
ratio |
string |
16 / 9 |
CSS aspect-ratio value or preset (1:1, 16:9, 4:3, 3:2, 21:9, square, video) |
as |
string |
div |
Root HTML element |