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 / Useful

Heard As

A voice timer or alarm that shows what it nearly heard as well. When two readings mean different things, the runner-up sits just behind, one tap away.

Needs: An n-best list with log-probabilities from any speech recogniser (Whisper beam search, a cloud API's alternatives). The preview uses real Whisper tiny output; its mic button loads Whisper tiny (about 41 MB) in the browser only when pressed.

Customize

clip

Props

PropTypeDefaultDescription
hypotheses{ text: string; logp: number }[] | nullrequiredThe recogniser's n-best list for one command, each line with its log-probability. Null before anything is heard. A new array is a new command.
autostartbooleantrueStart a timer as soon as it's heard. Off, it waits paused for Resume.
placeholderstring"Say a timer or an alarm"Shown before anything has been heard.
accentstring"#f28c18"Colour of the countdown bar. How sure the recogniser was is shown by blur and lightness, never colour.
onChange(reading: Reading, transcript: string) => void–Called with the reading in front when a command is heard, and again after every swap. Reading is { kind: "timer"; seconds } or { kind: "alarm"; h; m; half }.
onDone() => void–Called when a timer reaches zero. Play your chime here.
classNamestring""Extra class on the root.
styleCSSProperties–Inline style on the root. Set --mlui-heard-size to change the digits' size.
← Gesture PadHonest Pin →