About
A stable placeholder surface for AI image generation that animates through queued, generating, and refining states with a pointer-reactive dither effect before revealing the completed image without layout shift.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Image Generation to your project and fits it to your theme.
Code
How Image Generation is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { ImageGeneration } from "@/components/ui/image-generation";
export default function ImageGenerationDemo() {
return (
<div className="flex w-full min-h-screen items-center justify-center bg-background p-10">
<ImageGeneration
status="refining"
prompt="a calm mountain lake at dawn"
resolution="1024 × 1024"
>
<img
src="https://cdn.21st.dev/assets/mirror/51/51411488c17049c59972633c1e69e3f82156a5d78a261e31a551f86a6dd75f46.jpg"
alt="a calm mountain lake at dawn"
/>
</ImageGeneration>
</div>
);
}
















