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 Text

Text that resolves the way a diffusion model writes it: every position starts as noise and settles, the surest first. Uncertain letters keep flickering until their turn.

Needs: Nothing. Per-character confidences from a diffusion model are optional.

Customize

trigger

Props

PropTypeDefaultDescription
textstringrequiredThe text to write.
stepsnumber16Denoising steps. Each commits an even share of the positions, the most confident first.
durationnumber1800ms from all noise to the last position committed.
charsetstring"abcdefghijklmnopqrstuvwxyz"Glyphs a masked position guesses among. Digits always guess digits, and case follows the real letter.
noiseColorstring"#8a8780"Colour of the guesses. Left unset, the theme's muted grey (--mlui-muted).
trigger"mount" | "hover" | "inView""mount"When to write: once on mount, once on scrolling into view, or shown plainly and rewritten on hover.
confidencesnumber[]–Your model's confidence per character of text, 0 to 1. Any left out are simulated.
sizenumber | string56Font size in px, or any CSS length.
colorstring""Ink colour. Left unset, the theme's foreground (--mlui-fg).
seednumber1Seed for the simulated confidences and guesses.
classNamestring–Class on the root.
styleCSSProperties–Inline style on the root, e.g. a font weight.
← Diffusion ImageDither Mask →