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
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,13 +114,14 @@ import { Tooltip } from 'react-tooltip';
114
114
|`closeOnEsc`|`boolean`| no |`false`|`true``false`| Pressing escape key will close the tooltip |
115
115
|`closeOnScroll`|`boolean`| no |`false`|`true``false`| Scrolling will close the tooltip (for this to work, scroll element must be either the root html tag, the tooltip parent, or the anchor parent) |
116
116
|`closeOnEsc`|`boolean`| no |`false`|`true``false`| Resizing the window will close the tooltip |
117
-
|`style`|`CSSProperties`| no || a React inline style | Add inline styles directly to the tooltip |
117
+
|`style`|`CSSProperties`| no || a CSS style object | Add inline styles directly to the tooltip |
118
118
|`position`|`{ x: number; y: number }`| no || any `number` value for both `x` and `y`| Override the tooltip position on the DOM |
119
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`) |
120
120
|`setIsOpen`|`function`| no ||| The tooltip can be controlled or uncontrolled, this attribute can be used to handle show and hide tooltip outside tooltip |
121
121
|`afterShow`|`function`| no ||| A function to be called after the tooltip is shown |
122
122
|`afterHide`|`function`| no ||| A function to be called after the tooltip is hidden |
123
123
|`middlewares`|`Middleware[]`| no || array of valid `floating-ui` middlewares | Allows for advanced customization. Check the [`floating-ui` docs](https://floating-ui.com/docs/middleware) for more information |
124
+
|`border`|`CSSProperties['border']`| no || a CSS border style | Change the style of the tooltip border (including the arrow) |
0 commit comments