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 Select

Its chevron is five dots that turn over as it opens, and the menu arrives through a dither dissolve, upward when there's no room below. Underneath it behaves like a native select: type letters to jump, press and drag to pick in one go, full keyboard and screen-reader support, and a name to submit with a form.

Needs: None. DOM, one small canvas and the popover top layer.

Customize

Props

PropTypeDefaultDescription
options{ value: string; label: string; hint?: string; disabled?: boolean }[]requiredThe choices. A hint sits on the right of its row.
valuestring | null–The chosen value, when you hold it.
defaultValuestring–The value chosen at first, when the select holds it.
onChange(value: string) => void–Called with the new value.
placeholderstring"Choose…"Shown until something is chosen.
namestring–Submits the value with a surrounding form under this name.
disabledbooleanfalseGreys it out and stops it opening.
labelstring–Its name for screen readers, when no <label htmlFor> names it.
idstring–For a <label htmlFor>.
tonestring""The highlight's and tick's colour. The accent when unset.
classNamestring–Class on the root.
styleCSSProperties–Style on the root. Theme it through the --mlui-* variables.
← Dot ReceiptDot Signup →