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 Command

Opens with ⌘K (Ctrl+K elsewhere). Search runs each typed letter in order through every label and its keywords, best when they land on word starts or run together, so “cnp” finds Create new project and “theme” finds Toggle dark mode, and the matched letters are marked. The selection is a bar of dots with a lit edge that slides to each row on a spring. Arrow keys, Enter and Escape; a dialog, combobox and listbox to screen readers, and focus goes back where it was when it closes.

Needs: None. Canvas 2D.

Customize

Props

PropTypeDefaultDescription
itemsCommandItem[]requiredWhat can be found: id, label, and optionally group, hint, keywords, shortcut, href and onSelect.
openboolean–Open or closed. Leave unset and it keeps its own, opened with the hotkey.
onOpenChange(open: boolean) => void–Called when it opens or closes.
onSelect(item: CommandItem) => void–Called with whatever's chosen, after the item's own onSelect.
hotkeystring | false"k"The letter that opens it with ⌘ (Ctrl elsewhere). False for none.
placeholderstring"Type a command or search…"The search field's placeholder.
emptystring"Nothing found"What to say when nothing matches.
tonestring–The selection's colour. The page's accent by default.
classNamestring–Class on the overlay.
styleCSSProperties–Style on the overlay.
← Dot CodeDot Contents →