Aspect Ratio
Displays content within a desired aspect ratio.
Usage
Different Ratios
Pass any number as the ratio prop — common values include 1 (square), 4/3, and 21/9.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
ratio | number | 1 | The desired aspect ratio (e.g., 16/9 for widescreen). |