Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

16:9 Aspect Ratio (Widescreen)

A 16:9 widescreen aspect ratio container for video players, hero images, and modern multimedia content

Widescreen is everywhere now. This React component wraps content in a 16:9 aspect ratio using shadcn/ui's AspectRatio built on Radix UI primitives. The ratio prop (16 / 9) maintains perfect widescreen proportions regardless of container width, preventing layout shift when images or videos load. Perfect for YouTube embeds, video players, hero banners, or any multimedia content matching modern display standards—keeps aspect locked while parent width flexes responsively.

16:9 Aspect Ratio (Widescreen) preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.