Default side (auto flip); override per trigger with data-placement.
delay
number
500
Delay before the first appearance (ms). While the bubble is open, or just after any tooltip closed (mv-tooltip included), moving to another trigger is instant.
close-delay
number
160
Grace period before closing when the pointer leaves a trigger (lets it cross the gap between two buttons).
offset
number
8
Distance from the trigger (px).
disabled
boolean
Disables the whole group.
data-arrow="false"
string
Hides the arrow.
Properties
Name
유형
Description
activeTrigger
HTMLElement | null
Trigger currently being described.
isOpen
boolean
Whether the bubble is visible (read-only).
Methods
Name
Description
show(trigger)
Shows the bubble on a trigger, sliding over if it is already open.
hide()
Closes the surface.
Events
Name
Description
mv-open
First appearance. detail: { trigger }.
mv-change
The bubble slid to another trigger. detail: { trigger }.
mv-close
After closing.
Content structure
Name
Description
[data-tooltip]
Any descendant carrying this text becomes a trigger (delegated: elements added later work too). Changing it while open crossfades the label in place.
[data-tooltip-kbd]
Shortcut shown to the right of the label.
[data-tooltip-template="id"]
Rich content: a clone of a <template id> in the document.
[data-placement]
Trigger-specific side.
[data-tooltip-disabled]
Ignores this trigger.
CSS variables
Name
Default
Description
--mv-tooltip-bg
Background (shared with mv-tooltip).
--mv-tooltip-fg
Text color (shared with mv-tooltip).
--mv-tooltip-group-duration
var(--mv-duration-normal)
Duration of the slide and resize between triggers.
Accessibility
A single role=tooltip bubble, linked to the active trigger with aria-describedby (skipped when the label only repeats the trigger name). Opens at once on keyboard focus (:focus-visible), closes on Escape, on press and when focus or pointer leaves the group. The open bubble can be hovered without closing (WCAG 1.4.13). Never opens on touch. Outgoing labels are aria-hidden. Reduced motion makes the slide and crossfade instant; forced colors add an outline.