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 Tooltip

It behaves the way a good one should: a pause before the first opens and none as you move along a row of them, open on keyboard focus but not on a click, still there when you move the pointer onto it, gone with Escape. It flips to the other side and slides along to stay on screen, and it describes its trigger to screen readers.

Needs: None. The popover API and a CSS mask.

Customize

side

Props

PropTypeDefaultDescription
contentReactNoderequiredWhat it says. Keep it short.
childrenReactElementrequiredThe trigger: one focusable element.
side"top" | "bottom""top"The side it prefers; it flips when there's no room.
shortcutstring–A keyboard shortcut after the words, e.g. ⌘C.
delaynumber500Pause before the first opens, ms.
disabledbooleanfalseNever opens.
classNamestring–Class on the tooltip.
styleCSSProperties–Style on the tooltip.
← Dot ToastDot Variants →