Aspect Ratio
Displays content within a desired ratio.
Features
- Accepts any custom ratio.
Install the component from your command line.
Import the component.
Use the aspect ratio primitive.
Contains the content you want to constrain to a given ratio.
Prop | Type | Default | Required |
---|---|---|---|
as | enum | div | |
ratio | number | 1 |