Displays content within a desired ratio.
Displays content within a desired ratio.
| Prop | Type | Default | Description |
|---|---|---|---|
| ratio | number | 1 | The ratio to display the content within. |
<AspectRatio ratio={16 / 9}> <img src={blueSkies} alt="By Sarah Lee on Unsplash" className="h-full w-full rounded-xl object-cover" /></AspectRatio>Here's the <AspectRatio /> component in action.
