R

AspectRatio

1 parts

Anatomy

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
PropTypeDescription
ratio?numberDesired width-to-height ratio (e.g. `16 / 9`, `1`, `4 / 3`).