Aspect Ratio

Displays content within a fixed width-to-height ratio.

Installation

  1. Add the registryOnce per project
  2. Add aspect-ratio

Usage

It fills the width of its container and sets its height from ratio.

Examples

Square

Props

AspectRatio