← All components
Interaction / component

Generation Preview

An original cellular light placeholder with controlled progress, real image reveal and two aspect-aware sample contexts.

Live preview
Preparing preview…

Take it with you.

SOURCE ACCESS

Preview freely. Unlock the files.

Enter the shared password to copy the complete source, download every file, and install components in your app.

Access lasts 24 hours. Your preview settings stay with you.

Component notes

  • GenerationPreview binds caller requestId and empty/generating/ready/error/cancelled. Decoration and image loading never infer caller completion.
  • Unknown/nonfinite progress is indeterminate; finite values clamp from 0 to 100. 100% remains generating until the caller changes state. Complete known progress is explicitly labelled as a visual study, not measured network progress.
  • Complete Card/Wide fetch the actual bundled original SVG and validate the local response. Start, Cancel and Retry own an AbortController and unique requestId; stale results cannot replace current output. No AI service or remote sample image is used.
  • Ready requires the native image to load before the optional reveal. Rejected URI inputs render an unavailable image state without mounting an image or invoking onImageError. Actual native image load failures report once per request/source. Pass onRetry for an explicit native retry action.
  • Aspect ratios must be finite within 1:8–8:1, otherwise 16/10. The native img keeps Vite portability; caller remote assets may require application image optimization.
  • Paused/reduced/unavailable Web Animations reveal useful output immediately. Replay changes decoration only, retaining task/output and local state.
React 19.2Modern browsers

Chungus UI · Original project implementation; no restricted reference recipe or asset.

Props

PropTypeDefaultDescription
requestId (required)stringrequiredFresh caller request identity.
state (required)empty | generating | ready | error | cancelledrequiredAuthoritative caller task state.
srcstringundefinedReady output URI: relative path with ./, ../ or / prefix, typed image data URI, HTTP(S) or blob; unsafe schemes are rejected.
alt (required)stringrequiredMeaningful caller description of the actual ready output.
progressnumberundefinedOptional finite caller percentage; absent/nonfinite stays indeterminate.
aspectRatiostring16/10Finite frame ratio within1:8–8:1; malformed values fall back.
onRetry() => voidundefinedExplicit native action in error/cancelled/image-failure fallbacks.
onImageError() => voidundefinedOnce per actual native image load failure for the current request/source; never invoked for rejected URIs or by Replay.
headlinestringFrom possibility to a real artifact.Complete heading.
knownProgressbooleanfalseComplete-only labelled caller percentage study; does not measure local response progress.
pausedbooleanfalseSuspend decoration without changing caller state, retained text, local input or results.
replayTokennumber0Restart decoration while retaining caller state and local work in the new contexts. Legacy Thought/Lattice Demo explicitly restarts its synthetic interaction.