Aspect Ratio

Displays content within a desired ratio.

16:9 Ratio

The most common aspect ratio for video content.

Nature landscape

1:1 Ratio with Overlay

Perfect for profile pictures or square social media posts.

Mountain view

Mountain View

A breathtaking view of the mountains.

Installation & Usage

Installation

Imports

Basic Skeleton

API Reference

Helm API

The aspect ratio directive provides a simple way to maintain proportions.

DirectiveSelectorInputs
HlmAspectRatio[hlmAspectRatio]
  • hlmAspectRatio: number | string - The ratio as width / height (e.g., 16/9, 1, "4/3"). Default is 1.