HomeLabHire Me
ml-ui111 components

Get started

IntroductionInstallation

UI

Dots

Dot AccordionDot CalendarDot CheckboxDot CodeDot CommandDot ContentsDot CountdownDot CrossingDot FuseDot GaugeDot InstallDot KnobDot LogosDot MenuDot PaginationDot PasswordDot Price RangeDot PricingDot ProgressDot QueueDot RatingDot Reading ProgressDot SelectDot SignupDot SliderDot StatusDot StepperDot SwitchDot TabsDot ToastDot TooltipFlip-Dot CounterLED Marquee

Dither

Dither AvatarDither BannerDither CompareDither GlobeDither PortraitDither SkeletonDither TrailDither UploadDot CookiesDot DialogDot KeysDot ReceiptDot VariantsLenticular Card

More

Pollen TrailSplit-FlapTheme Toggle

Text

Dither RotatorDot TypeEnigma TextInk Print

Data viz

Dots

Contribution FieldDot BarsDot ChartDot Waffle

Dither

Dither DensityDither MapDither Stack

Media

Dots

Dot EqualizerDot WaveformVoice Note

Dither

Dither Scrubber

AI

Agent StepsAnswer VersionsCitation ChipConfidence GlassContext MeterDiffusion ImageDiffusion TextDither MaskDoc ReaderDot DictationGenerate ButtonGhost TextModel PickerPrompt BarResponse ActionsRevising TextSpoken ReplyThinking OrbThinking TraceToken MeterToken StreamWord Alternatives

Useful

Arrival TimeBest ShotCareer LineForgiving SearchGesture PadHeard AsHonest PinImage PaletteLikeness GridNear Miss SearchRain DropsSoft CorrectSpending SortSticker LiftTaste Ledger

Backgrounds

ButterfliesDandelionsDuck PondFirefliesKoi PondLight WellMarigoldsTrain WindowWhite Blossom

ml-ui / AI

Diffusion Image

It starts as pure coloured static. Step by step the noise thins and the picture comes through it coarse to fine, the broad shapes and colours first and the detail last, as a denoiser recovers them, printed in a dither of a few levels a channel with the static changing at each step. A counter ticks the steps, and when it's done the full-resolution image prints in through blue noise. Drive it with your model's progress callbacks, or let it run itself as the placeholder while a request is out.

Needs: None. Canvas 2D. The image must be same-origin or CORS-enabled.

Demo photos by Linh Nguyen, Kenneth Thewissen and Jimmy Fermin on Unsplash

Customize

picture

Props

PropTypeDefaultDescription
srcstringrequiredThe finished image.
altstringrequiredWhat it shows, for screen readers.
progressnumber–How far the generation has got, 0 to 1. Leave unset and it runs itself.
stepsnumber30Steps the counter counts.
durationnumber6Seconds it takes when it runs itself.
onDone() => void–Called once the image is fully in.
aspectnumber1Width over height.
cellnumber3Size of one dither cell in px.
classNamestring–Class on the image.
styleCSSProperties–Style on the image.
← Context MeterDiffusion Text →