Skip to content

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.json

Preview

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.json

GitHub 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.json

Usage

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

PropTypeDefault
state"queued" | "generating" | "refining" | "done" | "error""done"