Aspect Ratio
Displays content within a desired ratio.
Loading...
main.ts
styles.css
Features
- Accepts any custom ratio.
Anatomy
API Reference
Root
Contains the content you want to constrain to a given ratio.
RdxAspectRatioDirective
Prop | Type | Default |
---|---|---|
ratio | - | input<number, NumberInput>(1, { transform: numberAttribute }) |