Aspect Ratio

Keeps images, videos, and embeds at a fixed width-to-height ratio as the layout resizes.

Installation

npx shadcn@4.19.0 add https://ui.edbn.me/r/aspect-ratio.json

Source