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
[aronhelser](https://github.com/aronhelser) Passive maintainer - accepting PRs and doing minor testing, but not fixing issues or doing active development.
@@ -26,7 +30,7 @@ npm install react-tooltip
26
30
or
27
31
28
32
```sh
29
-
yarn react-tooltip
33
+
yarn add react-tooltip
30
34
```
31
35
32
36
## Usage
@@ -94,9 +98,6 @@ className | data-class | String | | extra custom class, can use !importan
94
98
95
99
The `html` option allows a tooltip to directly display raw HTML. This is a security risk if any of that content is supplied by the user. Any user-supplied content must be sanitized, using a package like [sanitize-html-react](https://www.npmjs.com/package/sanitize-html-react). We chose not to include sanitization after discovering it [increased our package size](https://github.com/wwayne/react-tooltip/issues/429) too much - we don't want to penalize people who don't use the `html` option.
96
100
97
-
## Using react component as tooltip
98
-
Check the example [React-tooltip Test](https://react-tooltip.netlify.com/)
99
-
100
101
##### Note:
101
102
1.**data-tip** is necessary, because `<ReactTooltip />` finds the tooltip via this attribute
102
103
2.**data-for** corresponds to the **id** of `<ReactTooltip />`
0 commit comments