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

Confidence Glass

A classifier's answer on a glass pill over its photo. Sure answers sit on clear, still glass; unsure ones on cloudy frost that never quite settles.

Needs: A label and a 0 to 1 score from your own classifier. No model in the browser.

Customize

photo

Props

PropTypeDefaultDescription
srcstringrequiredThe image the answer is about. Fills the frame (4:3 by default; set aspect-ratio in style to change it).
labelstringrequiredThe model's answer.
confidencenumberrequired0 to 1. Sure answers sit on solid, still glass; unsure ones on thin frost whose edge never settles.
altstring""Describes the image for screen readers; the label and score are read after it.
insetnumber20Gap between the pill and the bottom of the image, px.
classNamestring–Class on the frame.
styleCSSProperties–Style on the frame, e.g. width, aspect-ratio or --mlui-radius.
← Citation ChipContext Meter →