Image Generation

Present controlled image generation progress, cancellation, retry and results.

Image Generation

Default

Your service controls status, progress and the resulting URL. Cancellation and retry are events, and the completed image uses the built-in preview. Download emits the URL for your own download handler.

API

PROPS

Property
Type
Description
default
Example
More
status
Controlled process or review state.
pending
progress
Number
Controlled percentage, clamped to 0–100; non-finite values become 0.
0
src
String
Result image URL; rendered only when status is complete.
—
alt
String
Meaningful alternative text for the generated image.
—
resolution
String
Display-only resolution label; does not change the image source.
1024 × 768
error
String
Error message displayed with the failed state.
—
disabled
Boolean
Disable component actions.
false

EVENTS

Event
Type
Description
default
Example
More
cancel
() => void
Cancel active generation.
—
—
retry
() => void
Retry generation after failure or cancellation.
—
—
download
(src: string) => void
Download action requested; image results provide their URL.
—
—
load
() => void
Result image loaded.
—
—
image-error
() => void
Result image failed to load.
—
—

SLOTS

Slot
Description
default
Example
More
placeholder
Customize pending, running or failed image feedback.
—
—
actions
Customize the action row.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied