- Docs
- Components
- Aspect Ratio
Aspect Ratio
Displays content within a desired ratio.
Preview
Code
Installation
CLI
Manual
Anatomy
Examples
Square
A square aspect ratio component using the ratio={1 / 1} prop. This is useful for displaying images in a square format.
Preview
Code
Portrait
A portrait aspect ratio component using the ratio={9 / 16} prop. This is useful for displaying images in a portrait format.
Preview
Code
API Reference
| Prop | Type | Default |
|---|---|---|
ratio | number | 1 / 1 |