All components

Aspect Ratio

Locks media, maps, and artwork frames to design-token aspect ratios with rounded clipping.

16 : 9 (wide)

Ratio presets

Token-backed square (1:1), landscape (4:3), and portrait (3:4) frames.

1 : 1
4 : 3
3 : 4

Install

Source

components/ui/base-ui/aspect-ratio.tsx