图像生成

New

稳定的生成图画面:排队→生成→精修→完成/可恢复错误,逐步解析媒体且不 remount、不挤压周围会话。

Waiting to generate

a quiet mountain landscape at sunset

安装

用 shadcn CLI 添加,或手动复制源码。

$ bunx --bun shadcn add @uilab/image-generation

API 参考

children?
ReactNode

The completed media. Pass an img, Next Image, canvas, video, or custom preview.

status?
"error" | "complete" | "queued" | "generating" | "refining"
generating
label?
string

Accessible description. Defaults to a description derived from prompt.

prompt?
string
resolution?
string
1024 × 1024
aspectRatio?
AspectRatio

CSS aspect ratio reserved before generated media is available.

1 / 1
size?
"compact" | "fluid"
compact
interactive?
boolean

Lets the active dither cluster follow fine-pointer movement.

true
statusText?
string
showStatus?
boolean
true
onRetry?
(() => void)
className?
string
mediaClassName?
string
statusClassName?
string

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.