Aspect Ratio
Locks child content to a fixed width-to-height ratio. Built on reka-ui.
Default
16:9 image container that scales with its parent width.
Usage
Import the parts you need from the component's folder.
ts
import { AspectRatio } from "@/components/ui/aspect-ratio";Square
Set ratio=1 for square thumbnails.
Portrait
Set ratio=3/4 for tall, portrait-oriented content.