Aspect Ratio
Displays content within a desired ratio.
Loading...
Features
- Accepts any custom ratio.
Anatomy
API Reference
Root
Contains the content you want to constrain to a given ratio.
RdxAspectRatioDirective
Prop | Default | Type |
---|---|---|
ratio | 1 | InputSignalWithTransform<number, NumberInput> The desired aspect ratio (e.g., 16/9). By default, it is set to 1 (which results in a square, 1:1). |