UI95

Aspect Ratio

Keeps content at a fixed aspect ratio.

Examples

A1:1
1:1
B4:3
4:3
C16:9
16:9
Dimage
eye

Installation

npx shadcn@latest add https://www.ui95.dev/r/aspect-ratio.json

Run it in a Radix shadcn project that already has the UI95 theme.

API reference

AspectRatio

No props of its own. It forwards the props of the element or primitive it wraps.

Updated Nov 5, 2026