@codemirror/tooltip
Advanced tools
Changelog
0.19.6 (2021-11-07)
Fix an issue where a tooltip arrow wasn't moved along by a horizontal offset.
Changelog
0.19.5 (2021-11-06)
Fix breakage of hover tooltips inside shadow roots.
Adds a hasHoverTooltips
predicate that tells you if an editor state has any open hover tooltips.
Adds a closeHoverTooltips
state effect that closes all hover tooltips.
Tooltip views can now provide an offset
property to change the tooltip position.
Changelog
0.19.3 (2021-10-11)
Fix an issue where a newly created (or reconfigured) editor wouldn't show its tooltips until the first change or scroll event.
Tooltips now accept an arrow
option to show a little triangle between the tooltip and its target position.
Changelog
0.19.1 (2021-08-30)
The new tooltips
function can be used to configure tooltip behavior. For now, the only option is position
, which allows you to choose between fixed and absolute positioning.
Changelog
0.19.0 (2021-08-11)
Move tooltips to avoid overlapping between them, when necessary.
Make sure tooltips don't stay visible when the editor goes out of view.
Hover tooltips are now grouped together in a single DOM element when multiple such tooltips are active.
Changelog
0.18.4 (2021-03-15)
It is no longer necessary to use the tooltips
extension when using this package—just providing values through showTooltip
will implicitly enable the necessary extensions.
Tooltips no longer use the class
property on the spec object (just apply the class yourself when creating the DOM element).
Tooltips in a dark theme that doesn't explicitly style them no longer use the light theme defaults.
showTooltip
now accepts null as input value, which doesn't produce a tooltip.