About
An image preview box with buttons to switch its aspect ratio between 1:1, 4:3, 16:9, and 21:9.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Aspect Ratio Switcher to your project and fits it to your theme.
Code
How Aspect Ratio Switcher is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import RatioSwitcher from "@/components/ui/aspect-ratio-05";
export default function AspectRatio05Demo() {
return (
<div className="flex w-full items-center justify-center py-10">
<RatioSwitcher />
</div>
);
}















