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

Model Picker

A pill naming the current model that springs open into a glass popover. Each model has small bars for speed, quality and cost, compared with each other rather than as numbers.

Needs: None. Your own list of models and how they compare.

Customize

align

Props

PropTypeDefaultDescription
models{ id: string; name: string; note?: string; speed: number; quality: number; cost: number; badge?: string }[]requiredThe choices. speed, quality and cost run 0 to 1 relative to each other; higher cost is more expensive.
valuestring–The chosen id, or "auto". Leave it out and the picker keeps its own.
defaultValuestring–Starting choice when uncontrolled. "auto" if auto is set, else the first model.
onChange(id: string) => void–Called with the chosen id, or "auto".
auto{ pick: string; reason: string }–Adds an Auto row that reads "Would pick Core: <reason>". pick is a model id; reason continues the sentence.
accentstring"#2f6fed"Any CSS colour for the check, the active row's meters and the focus ring. The default lightens in dark mode.
align"start" | "end""start"Which edge of the pill the popover lines up with. It flips upward and shifts sideways to stay inside whatever clips it.
labelstring"Model"Heads the popover and names the picker for screen readers.
defaultOpenbooleanfalseOpen on first render, without taking focus.
classNamestring–Added to the root element.
styleCSSProperties–Inline styles on the root; set --mlui-* variables here to theme it.
← Ghost TextPrompt Bar →