overlayscss
Tooltip
Singleton text hint shown on hover or keyboard focus of any data-tooltip element, positioned with Floating UI.
Notes
- One shared tooltip element is reused for every trigger; it is created on first use and kept positioned with Floating UI
autoUpdate. - Hover shows after
delay(default 100 ms); moving to another trigger within 350 ms of the last hide shows immediately (warmup). - Touch pointers are ignored, disabled triggers are skipped, and pointerdown hides the tooltip.
- Placement names map to Floating UI placements (
top-left→top-start, etc.);flipandshiftkeep the tooltip inside the viewport.