Forms
Navigation & layout
Data display & feedback
Date & time
Browse components
← All components
Image Generation
Generated image surface from queued work to a finished result.
Install
npx shadcn@latest add https://ui.anuragroy.dev/r/image-generation.jsonPreview
Loading preview…
Installation
Add the component from this site. The shadcn CLI fetches the registry JSON over HTTPS — no named registry submission required.
Terminal
npx shadcn@latest add https://ui.anuragroy.dev/r/image-generation.jsonGitHub fallback if the website is down:
Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/image-generation.jsonUsage
Import paths follow your components.json aliases. After install, the default path is @/components/ui/image-generation.
Import
import { ImageGeneration, ImageGenerationActions, ImageGenerationLabel, ImageGenerationMedia} from "@/components/ui/image-generation"example.tsx
import { ImageGeneration, ImageGenerationLabel, ImageGenerationMedia,} from "@/components/ui/image-generation"export function Example() { return ( <ImageGeneration state="done"> <ImageGenerationMedia> <img src="/result.png" alt="Generated image" /> </ImageGenerationMedia> <ImageGenerationLabel>Done</ImageGenerationLabel> </ImageGeneration> )}API Reference
ImageGeneration
| Prop | Type | Default |
|---|---|---|
| state | "queued" | "generating" | "refining" | "done" | "error" | "done" |