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.
@@ -35,4 +35,3 @@ To this:
35
35
 
36
36
  OBS: do not commit this change or the docs will broken the deployment and will not be updated.
37
37
 
38
-
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](CONTRIBUTION.md) doc has some details.
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
 
@@ -8,4 +8,5 @@
8
8
  --rt-opacity: 0.9;
9
9
  --rt-transition-show-delay: 0.15s;
10
10
  --rt-transition-closing-delay: 0.15s;
11
+ --rt-arrow-size: 8px;
11
12
  }