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
| delayShow | number | false || any `number`| tooltip show will be delayed in miliseconds by the amount of value |
68
68
| delayHide | number | false || any `number`| tooltip hide will be delayed in miliseconds by the amount of value |
69
69
| style | CSSProperties | false || any React inline style | add styles directly to the component by `style` attribute |
70
-
| getContent | function | false || (value: string) => string | a method available to parse, format or modify the given content of tooltip before show it |
71
70
| isOpen | boolen | false | 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`) |
72
71
| setIsOpen | function | false ||| the tooltip can be controlled or uncontrolled, this attribute can be used to handle show and hide tooltip outside tooltip |
Copy file name to clipboardExpand all lines: docs/docs/upgrade-guide/changelog-v4-v5.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ V4 was a great react tooltip component but was built a few years ago, he was bui
27
27
-- If you already have a `Tooltip` component in your application and want to explicitly declare this is `ReactTooltip`, just `import { Tooltip as ReactTooltip } from "react-tooltip"`
28
28
- CSS import is now optional, so, you can modify and/or add any styling to your floating tooltip element
29
29
-`data-tip` attribute now is `data-content`
30
-
-`getContent` prop now doesn't accept `any` anymore, just a `function`
30
+
-`getContent` prop was removed. Instead, you can directly pass dynamic content to the `content` tooltip prop, or to `data-tooltip-content`
31
31
- default behavior of tooltip now is `solid` instead of `float`
32
32
33
33
## New Props
@@ -65,7 +65,7 @@ V4 was a great react tooltip component but was built a few years ago, he was bui
65
65
-[ ] eventOff - **Deprecated**
66
66
-[ ] isCapture - **Deprecated**
67
67
-[ ] globalEventOff - **Deprecated**
68
-
-[x] getContent - Now this attribute only accepts a function instead of any
68
+
-[] getContent - use dynamic `content`instead
69
69
-[ ] afterShow - not implemented yet, if many users need this feature, we will work on this one.
70
70
-[ ] afterHide - not implemented yet, if many users need this feature, we will work on this one.
0 commit comments