Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Image Generation

Preview

Image ready

“a quiet mountain landscape at sunset”

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/image-generation

Import the shared styles once in your application.

TSUsage
import ImageGeneration from '@/components/beui/agents/ImageGeneration.vue'
import '@/components/beui/styles.css'

API Reference

#default?
slot

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

Default—
status?
Status
Defaultgenerating
label?
string

Accessible description. Defaults to a description derived from prompt.

Default—
prompt?
string
Default—
resolution?
string
Default1024 × 1024
aspectRatio?
number | string

CSS aspect ratio reserved before generated media is available.

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

Lets the active dither cluster follow fine-pointer movement.

Defaulttrue
statusText?
string
Default—
showStatus?
boolean
Defaulttrue
@retry?
() => void
Default—
labels?
Labels

Override any built-in string. `{status}` and `{prompt}` fill `labelWithPrompt`; `{prompt}` fills `quotedPrompt`.

Default—
class?
string
Default—
mediaClassName?
string
Default—
statusClassName?
string
Default—

Composition

Place generated media inside the response row that owns its prompt and completion state.

Message
└── MessageContent
    └── ImageGeneration
        └── GeneratedMedia

Note: Message keeps the generated result attached to its assistant turn. Streaming Response carries accompanying text before or after the media result. Prompt Input collects the instruction that starts generation.

How it works

Generated media should occupy its final space before pixels are ready. The surface keeps one stable canvas while generation state progressively reveals the result, then settles into an ordinary image that remains easy to inspect.

Also on React Native. A dot field you can steer while the image forms.(opens in a new tab)

Updated