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: README.md
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,62 @@ Documentation for V5 - [ReactTooltip](https://react-tooltip.com/docs/getting-sta
48
48
</a>
49
49
</p>
50
50
51
+
---
52
+
53
+
## Installation
54
+
55
+
```sh
56
+
npm install react-tooltip
57
+
```
58
+
59
+
or
60
+
61
+
```sh
62
+
yarn add react-tooltip
63
+
```
64
+
65
+
## Usage
66
+
67
+
1 . Import the CSS file to set default styling.
68
+
69
+
> :warning: If you are using a version before than `v5.13.0`, you must import the CSS file or the tooltip won't show!
70
+
71
+
```js
72
+
import'react-tooltip/dist/react-tooltip.css'
73
+
```
74
+
75
+
This needs to be done only once and only if you are using a version before than `5.13.0`. We suggest you do it on your `src/index.js` or equivalent file.
76
+
77
+
2 . Import `react-tooltip` after installation.
78
+
79
+
```js
80
+
import { Tooltip } from'react-tooltip'
81
+
```
82
+
83
+
or if you want to still use the name ReactTooltip as V4:
0 commit comments