Skip to content

Aspect Ratio

Wrapper that maintains aspect ratio for content.

1:1

Installation

Usage

Examples

Square

1:1

Portrait

9:16

Video

16:9

Responsive

Use [--ratio:*] with breakpoints to change the ratio at different screen sizes.

16:9 → 1:1

You can use breakpoint utilities to change the aspect ratio at different screen sizes.

API Reference

AspectRatio

Root component.