react-tooltip 6.0.0-beta.1179.rc.2 → 6.0.0-beta.1179.rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{CONTRIBUTION.md → CONTRIBUTING.md} +0 -1
- package/README.md +30 -2
- package/dist/react-tooltip-tokens.css +1 -0
- package/dist/react-tooltip.cjs +1302 -798
- package/dist/react-tooltip.cjs.map +1 -1
- package/dist/react-tooltip.css +19 -4
- package/dist/react-tooltip.d.ts +19 -21
- package/dist/react-tooltip.min.cjs +2 -2
- package/dist/react-tooltip.min.cjs.map +1 -1
- package/dist/react-tooltip.min.css +1 -1
- package/dist/react-tooltip.min.mjs +2 -2
- package/dist/react-tooltip.min.mjs.map +1 -1
- package/dist/react-tooltip.mjs +1303 -799
- package/dist/react-tooltip.mjs.map +1 -1
- package/dist/react-tooltip.umd.js +1304 -801
- package/dist/react-tooltip.umd.js.map +1 -1
- package/dist/react-tooltip.umd.min.js +2 -2
- package/dist/react-tooltip.umd.min.js.map +1 -1
- package/eslint.config.js +155 -0
- package/package.json +70 -58
- package/.eslintrc.json +0 -97
- package/.gitattributes +0 -3
- package/.prettierrc.json +0 -10
- package/.stylelintrc.json +0 -19
- package/beta-release.js +0 -81
- package/rollup.config.dev.mjs +0 -88
- package/rollup.config.prod.mjs +0 -126
- package/rollup.config.types.mjs +0 -21
- package/tsconfig.json +0 -109
package/README.md
CHANGED
|
@@ -26,7 +26,9 @@ Why do we show ads on our docs?
|
|
|
26
26
|
|
|
27
27
|
Documentation for V4 - [Github Page](https://reacttooltip.github.io/react-tooltip/).
|
|
28
28
|
|
|
29
|
-
Documentation for V5 - [ReactTooltip](https://react-tooltip.com/docs/getting-started).
|
|
29
|
+
Documentation for V5 - [ReactTooltip](https://react-tooltip.com/docs/5.x/getting-started).
|
|
30
|
+
|
|
31
|
+
Documentation for V6 - [ReactTooltip](https://react-tooltip.com/docs/getting-started).
|
|
30
32
|
|
|
31
33
|
---
|
|
32
34
|
|
|
@@ -42,6 +44,32 @@ or
|
|
|
42
44
|
yarn add react-tooltip
|
|
43
45
|
```
|
|
44
46
|
|
|
47
|
+
## React Compatibility
|
|
48
|
+
|
|
49
|
+
`react-tooltip` supports React `16.14.0` and newer through peer dependencies, including React 17, 18, and 19.
|
|
50
|
+
|
|
51
|
+
The project is currently validated against React 19, but the published package remains compatible with older supported React versions.
|
|
52
|
+
|
|
53
|
+
| React version | Supported |
|
|
54
|
+
| ------------- | --------- |
|
|
55
|
+
| 16.14+ | Yes |
|
|
56
|
+
| 17.x | Yes |
|
|
57
|
+
| 18.x | Yes |
|
|
58
|
+
| 19.x | Yes |
|
|
59
|
+
|
|
60
|
+
## Server Components
|
|
61
|
+
|
|
62
|
+
`react-tooltip` is a client-side library. It uses hooks, DOM observers, browser events, and layout measurement, so the tooltip component itself must run inside a client component boundary.
|
|
63
|
+
|
|
64
|
+
This works well in frameworks such as Next.js with Server Components, but you should render `<Tooltip />` from a client component and attach your tooltip attributes or selectors from elements rendered under that client boundary.
|
|
65
|
+
|
|
66
|
+
If you are using React Server Components, the practical rule is simple:
|
|
67
|
+
|
|
68
|
+
- server components can render the anchor markup
|
|
69
|
+
- client components should render and control `react-tooltip`
|
|
70
|
+
|
|
71
|
+
In Next.js, the usual pattern is to export the tooltip from a small wrapper file marked with `'use client'`.
|
|
72
|
+
|
|
45
73
|
## Sponsors
|
|
46
74
|
|
|
47
75
|
### Gold Sponsors 🌟
|
|
@@ -155,7 +183,7 @@ We would gladly accept a new maintainer to help out!
|
|
|
155
183
|
|
|
156
184
|
## Contributing
|
|
157
185
|
|
|
158
|
-
We welcome your contribution! Fork the repo, make some changes, submit a pull-request! Our [contributing](
|
|
186
|
+
We welcome your contribution! Fork the repo, make some changes, submit a pull-request! Our [contributing](CONTRIBUTING.md) doc has some details.
|
|
159
187
|
|
|
160
188
|
## License
|
|
161
189
|
|