You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/options.mdx
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,8 @@ import { Tooltip } from 'react-tooltip';
112
112
|`noArrow`|`boolean`| no |`false`|`true``false`| Tooltip arrow will not be shown |
113
113
|`clickable`|`boolean`| no |`false`|`true``false`| Allow interaction with elements inside the tooltip. Useful when using buttons and inputs |
114
114
|`closeOnEsc`|`boolean`| no |`false`|`true``false`| Pressing escape key will close the tooltip |
115
+
|`closeOnScroll`|`boolean`| no |`false`|`true``false`| Scrolling anywhere on the window will close the tooltip |
116
+
|`closeOnEsc`|`boolean`| no |`false`|`true``false`| Resizing the window will close the tooltip |
115
117
|`style`|`CSSProperties`| no || a React inline style | Add inline styles directly to the tooltip |
116
118
|`position`|`{ x: number; y: number }`| no || any `number` value for both `x` and `y`| Override the tooltip position on the DOM |
117
119
|`isOpen`|`boolean`| no | handled by internal state |`true``false`| The tooltip can be controlled or uncontrolled, this attribute can be used to handle show and hide tooltip outside tooltip (can be used **without**`setIsOpen`) |
Copy file name to clipboardExpand all lines: docs/docs/upgrade-guide/changelog-v4-v5.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ If you run into any problems with the tooltip not updating after changes are mad
50
50
-[x]`float` - `boolean` - used to achieve V4's `effect="float"`
51
51
-[x]`hidden` - `boolean` - when set, the tooltip will not show
52
52
-[x]`render` - `function` - can be used to render dynamic content based on the active anchor element (check [the examples](../examples/render.mdx) for more details)
53
+
-[x]`closeOnScroll` - `boolean` - when set, the tooltip will close when scrolling anywhere on the window
54
+
-[x]`closeOnResize` - `boolean` - when set, the tooltip will close when resizing the window
0 commit comments