Launch sale — 60% off Pro
Contact
Aspect RatioStandard

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

React 9:16 Aspect Ratio (Vertical/Mobile)

A 9:16 vertical aspect ratio container for mobile stories, TikTok content, and portrait-oriented media

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Mobile-first means vertical. This React component wraps content in a 9:16 aspect ratio using shadcn/ui's AspectRatio built on Radix UI primitives. The ratio prop (9 / 16) maintains portrait smartphone proportions perfect for stories and vertical video, preventing layout shift when media loads. Perfect for Instagram Stories, TikTok videos, Snapchat content, or any mobile-first vertical media—keeps portrait aspect locked while adapting width responsively for immersive full-screen smartphone viewing experiences.

9:16

Pattern created by @haydenbleasel

Installation

Questions you might have