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 Menu

For the … on a row or the account menu under an avatar. It comes out of its button grain by grain, a bar of dots follows the pointer or the arrow keys, and it turns red on something that can't be undone. Letters jump to an item, Escape hands focus back, and you can press, drag and let go to choose in one gesture. It turns upward or slides along to stay on screen.

Needs: None. The popover API, a CSS mask and one small canvas.

Customize

align

Props

PropTypeDefaultDescription
childrenReactElementrequiredThe button that opens it. It's given the menu's ARIA and handlers.
items({ label; onSelect?; href?; shortcut?; danger?; disabled? } | { separator: true } | { heading })[]requiredWhat's in it.
align"start" | "end""start"Which edge of the trigger it lines up with.
labelstring–What the menu is, for screen readers.
tonestring–The highlight's colour. The page's accent by default.
classNamestring–Class on the menu.
styleCSSProperties–Style on the menu.
← Dot LogosDot Pagination →