AI Chat Fancy Stable

ImageGeneration

Fixed frame that holds its place while a model draws: an empty outline, then a pixel grid working over a drifting dot field, then the finished image easing out of a blur

Preview

Installation

pnpm add fancy-ui-svelte
import { ImageGeneration } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { ImageGeneration } from 'fancy-ui-svelte';
</script>

<ImageGeneration />

Examples

Basic Usage

Props

PropTypeDefaultDescription
status *"idle" | "generating" | "done" | "error"-Which stage of the generation to render
src string | null-The generated image, shown once status is "done"
alt *string-Describes the image to assistive tech — typically the prompt
aspectRatio string"1 / 1"CSS aspect-ratio of the frame, holding the layout across every state
prompt string-Muted caption line under the frame
errorText string"Generation failed"The failure line shown in the error state
onRetry () => void-Pressing retry calls this; the retry button only exists when it is set
onLoad () => void-Called once the generated image has finished loading