◇
AspectRatio
1 partsAnatomy
Import the parts and compose them. Each part forwards attributes to its underlying element.
vue
import {
AspectRatio,
} from '@robonen/primitives/aspect-ratio';
<AspectRatio />API Reference
AspectRatio
Root| Prop | Type | Description |
|---|---|---|
ratio? | number | Desired width-to-height ratio (e.g. `16 / 9`, `1`, `4 / 3`). |