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

Thinking Trace

The block shown while a model reasons, done properly. A soft light sweeps the label, a timer counts real seconds, and the latest thought streams in underneath.

Needs: None. Simulated from `steps` by default; pass `stream` for real reasoning tokens.

Customize

Props

PropTypeDefaultDescription
stepsstring[]requiredThought lines, revealed one after another over `duration`, each typed out as if it were being thought. Required unless you pass `stream` instead.
streamAsyncIterable<string>–Real reasoning text as it arrives, split into lines on "\n". Thinking ends when the stream does. Read once, so remounts don't lose it.
doneboolean–Controlled. true collapses it into the pill; false keeps it thinking after the lines or stream run out. Left out, it finishes on its own.
durationnumber8Seconds the simulated thinking takes with `steps`, and the time shown if it mounts already done.
labelstring"Thinking"Said while it thinks, before the timer.
shimmerColorstring""Colour of the light that sweeps the label. The text colour when empty, which reads as a sweep of ink on light and of light on dark.
defaultOpenbooleanfalseStart with the full trace showing instead of the latest line.
onOpenChange(open: boolean) => void–Called when the trace is opened or closed.
classNamestring–Added to the root element.
styleCSSProperties–Inline styles on the root; set --mlui-* variables here to theme it.
← Thinking OrbToken Meter →