react-tooltip 6.0.0-beta.1179.rc.2 → 6.0.0-beta.1179.rc.20
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 +27 -1
- 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
|
@@ -42,6 +42,32 @@ or
|
|
|
42
42
|
yarn add react-tooltip
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
+
## React Compatibility
|
|
46
|
+
|
|
47
|
+
`react-tooltip` supports React `16.14.0` and newer through peer dependencies, including React 17, 18, and 19.
|
|
48
|
+
|
|
49
|
+
The project is currently validated against React 19, but the published package remains compatible with older supported React versions.
|
|
50
|
+
|
|
51
|
+
| React version | Supported |
|
|
52
|
+
| ------------- | --------- |
|
|
53
|
+
| 16.14+ | Yes |
|
|
54
|
+
| 17.x | Yes |
|
|
55
|
+
| 18.x | Yes |
|
|
56
|
+
| 19.x | Yes |
|
|
57
|
+
|
|
58
|
+
## Server Components
|
|
59
|
+
|
|
60
|
+
`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.
|
|
61
|
+
|
|
62
|
+
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.
|
|
63
|
+
|
|
64
|
+
If you are using React Server Components, the practical rule is simple:
|
|
65
|
+
|
|
66
|
+
- server components can render the anchor markup
|
|
67
|
+
- client components should render and control `react-tooltip`
|
|
68
|
+
|
|
69
|
+
In Next.js, the usual pattern is to export the tooltip from a small wrapper file marked with `'use client'`.
|
|
70
|
+
|
|
45
71
|
## Sponsors
|
|
46
72
|
|
|
47
73
|
### Gold Sponsors 🌟
|
|
@@ -155,7 +181,7 @@ We would gladly accept a new maintainer to help out!
|
|
|
155
181
|
|
|
156
182
|
## Contributing
|
|
157
183
|
|
|
158
|
-
We welcome your contribution! Fork the repo, make some changes, submit a pull-request! Our [contributing](
|
|
184
|
+
We welcome your contribution! Fork the repo, make some changes, submit a pull-request! Our [contributing](CONTRIBUTING.md) doc has some details.
|
|
159
185
|
|
|
160
186
|
## License
|
|
161
187
|
|