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.
@@ -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
@@ -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](CONTRIBUTION.md) doc has some details.
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
 
@@ -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
  }