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
|`className`|`string`| no ||| Class name to customize tooltip element. You can also use the default class `react-tooltip` which is set internally |
93
93
|`classNameArrow`|`string`| no ||| Class name to customize tooltip arrow element. You can also use the default class `react-tooltip-arrow` which is set internally |
94
-
|`content`|`string`| no ||| Content to de displayed in tooltip (`html` prop is priorized over `content`) |
95
-
|~~`html`~~|~~`string`~~|~~no~~|||~~HTML content to de displayed in tooltip~~ <br/>**DEPRECATED**<br/>Use `children` or `render` instead |
94
+
|`content`|`string`| no ||| Content to be displayed in tooltip (`html` prop is priorized over `content`) |
95
+
|~~`html`~~|~~`string`~~|~~no~~|||~~HTML content to be displayed in tooltip~~ <br/>**DEPRECATED**<br/>Use `children` or `render` instead |
96
96
|`render`|`function`| no ||| A function which receives a ref to the currently active anchor element and returns the content for the tooltip. Check the [examples](./examples/render.mdx)|
97
97
|`place`|`string`| no |`top`|`top``top-start``top-end``right``right-start``right-end``bottom``bottom-start``bottom-end``left``left-start``left-end`| Position relative to the anchor element where the tooltip will be rendered (if possible) |
98
98
|`offset`|`number`| no |`10`| any `number`| Space between the tooltip element and anchor element (arrow not included in calculation) |
@@ -116,12 +116,12 @@ import { Tooltip } from 'react-tooltip';
116
116
|`closeOnResize`|`boolean`| no |`false`|`true``false`| Resizing the window will close the tooltip |
117
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
-
|`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`) |
119
+
|`isOpen`|`boolean`| no ||`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) |
125
-
|`opacity`|`CSSProperties['opacity']`| no |`0.9`| a CSS opacity value | Change the opacity of the tooltip |
126
-
|`arrowColor`|`CSSProperties['backgroundColor']`| no || a CSS background color | Change color of the tooltip arrow |
127
-
|`disableStyleInjection`|<code>`boolean`|`'core'`</code>| no |`false`|`true``false``'core'`| Whether to disable automatic style injection. Do not set dynamically. Check the [styling page](./examples/styling#disabling-reacttooltip-css) for more details |
124
+
|`border`|CSS border| no || a CSS border style | Change the style of the tooltip border (including the arrow) |
125
+
|`opacity`|CSS opacity| no |`0.9`| a CSS opacity value | Change the opacity of the tooltip |
126
+
|`arrowColor`|CSS color | no || a CSS background color | Change color of the tooltip arrow |
127
+
|`disableStyleInjection`|`boolean`or`'core'`| no |`false`|`true``false``'core'`| Whether to disable automatic style injection. Do not set dynamically. Check the [styling page](./examples/styling#disabling-reacttooltip-css) for more details |
0 commit comments