Launch sale — 60% off Pro
Contact
Aspect RatioStandard

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React 2:1 Aspect Ratio (Panoramic)

A 2:1 panoramic aspect ratio container for wide landscape photography, banner images, and sweeping vistas

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Panoramas demand width. This React component wraps content in a 2:1 aspect ratio using shadcn/ui's AspectRatio built on Radix UI primitives. The ratio prop (2) maintains dramatic horizontal proportions perfect for sweeping landscapes and wide banner images, preventing layout shift when content loads. Perfect for panoramic photography, hero banners, website headers, or dramatic landscape imagery—keeps wide aspect locked while adapting width responsively for expansive visual storytelling across desktop and mobile displays.

2:1

Pattern created by @haydenbleasel

Installation

Questions you might have