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

Dot Variants

Each colour is a swatch of cloth printed in its own three inks, lit from the top left with a sheen; sizes are plain buttons. Choose one and a ring of dots is drawn round it. Sold-out options are struck through and skipped, a size that's nearly gone says how many are left, and hovering a swatch names it. Native radio buttons underneath, so arrows, Tab and forms all work.

Needs: None. A tiny canvas per swatch.

Customize

Props

PropTypeDefaultDescription
groups{ name; options: { value; label; color?; soldOut?; left? }[] }[]requiredOne group per choice: colours (options with a color) or sizes.
valueRecord<string, string>–Chosen option per group name. Leave unset to let it keep its own.
defaultValueRecord<string, string>–Chosen at first; the first in stock of each group by default.
onChange(value) => void–Called with every group's choice when one changes.
lowStocknumber5Say "Only N left" at or under this many.
classNamestring–Class on the pickers.
styleCSSProperties–Style on the pickers.
← Dot TooltipFlip-Dot Counter →