Thinking UI

Outpaint ExpandPRO

A sharp source crop sits in a frame that pushes outward, generating the image around it.

Code

3 files · 269 lines of TypeScriptPRO

Outpaint Expand is part of Pro

Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.

Motion notes

  • The source crop stays tack-sharp the whole time; only the newly uncovered area is being generated, which is exactly what outpainting does.
  • New regions start as latent noise over the image's colour masses and resolve with distance behind the frame edge, so a soft seam of half-formed content travels outward.
  • The crop frame itself is drawn, so you can see the boundary the model is extending from. Set its starting size with `crop`.
  • With reduced motion the frame steps outward with progress and the latent shimmer is frozen.

Usage

Example
<ImageOutpaint progress={job.progress} src={job.url} alt={prompt} crop={0.45} />

Props

PropTypeDefaultDescription
progressnumber—0–100.
srcstring—Final image URL. Same-origin or CORS-enabled.
altstring—Alt text.
cropnumber0.5Starting crop as a fraction of the card's width, 0.2–0.8.
classNamestring—Size it here; the default is w-64 at 3:4.