About
Responsive media containers in eight ReUI aspect ratios for widescreen, standard, square, ultrawide, portrait, photography, social media, and monitor layouts.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds ReUI Aspect Ratio to your project and fits it to your theme.
Code
How ReUI Aspect Ratio is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { AspectRatio } from "@/components/ui/reui-aspect-ratio"
export default function Pattern() {
return (
<div className="w-full max-w-md">
<AspectRatio
ratio={21 / 9}
className="bg-muted rounded-xl overflow-hidden border"
>
<img
src="https://cdn.21st.dev/assets/mirror/0e/0ef27c0342f7c6638cf64f2633f21407c50357ab00e5e6da311039dec0f3b750.jpg"
alt="21:9"
width={1000}
height={800}
className="h-full w-full object-cover"
/>
</AspectRatio>
</div>
)
}








