AI Image Reveal

NEW

A particle cloud gathers into a finished image, then resolves from a noisy mosaic into a sharp result.

Generating…

Generating image

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/ai-image-reveal

API Reference

PropTypeDefaultDescription
srcstring | nullundefinedPublic image URL to reveal; omit while generating.
altstring—Alternative text for the finished image.
generatingbooleanderived from srcForce the generating state while an image URL is present.
aspectRationumber1Width divided by height of the image frame.
promptstring—Optional caption displayed below the image.
generatingLabelstringGenerating…Status pill label while waiting or gathering.
colorsstring[]—Optional particle palette as hex colors.
densitynumber1Particle density multiplier from 0.4 to 2.
durationnumber3.2Reveal duration in seconds.
crossOrigin"anonymous" | "use-credentials" | """anonymous"Cross-origin mode used when loading the image.
onReveal() => void—Called after the image reveal completes.
onImageError() => void—Called if the image URL cannot be loaded.
refAIImageRevealHandle—Exposes replay() to play the reveal again.