AspectRatio
Radix AspectRatio container that maintains a specified width/height ratio.
Installation
Examples
Common ratios
16:9 widescreen, 4:3 standard, 1:1 square.
16:9
4:3
1:1
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| ratio | number | 1 | Aspect ratio as width/height, e.g. 16/9. |