Skip to content

Commit 70b0dcc

Browse files
docs: remove references to useId
1 parent 83a9181 commit 70b0dcc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

docs/docs/options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import 'react-tooltip/dist/react-tooltip.css'
5757
| html | string | false | | | html content to de displayed in tooltip |
5858
| place | string | false | `top` | `top` `right` `bottom` `left` | place related to anchor element where the tooltip will be rendered if possible |
5959
| offset | number | false | `10` | any `number` | space between the tooltip element and anchor element (arrow not included in calc) |
60-
| id | string | false | React `useId` | any `string` | option to set a specific id into the tooltip element, the default value is handled by React `useId` introduced on React 18 |
60+
| id | string | false | | any `string` | set an internal tooltip id. required when using [multiple tooltips with a provider](./examples/multiple-anchors.mdx) |
6161
| anchorId | string | false | `undefined` | any `string` | id reference from the element that the tooltip will be positioned around |
6262
| variant | string | false | `dark` | `dark` `light` `success` `warning` `error` `info` | change the colors of tooltip with pre-defined values |
6363
| wrapper | valid element | false | `div` | `ElementType` `div` `span` | element wrapper of tooltip container, can be `div`, `span` or any valid Element |

docs/docs/upgrade-guide/changelog-v4-v5.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ V4 was a great react tooltip component but was built a few years ago, he was bui
1313
## Improvements
1414

1515
- Dropped package dependency `uuid`
16-
- - Using React `useId` - [Docs](https://reactjs.org/docs/hooks-reference.html#useid)
17-
- - - Unfortunately `useId` was introduced only into React v18, so that is the minimum required React version to use V5
1816
- Dropped package dependency `prop-types`
1917
- V5 is written in TypeScript
2018
- V5 has minified and unminified files available to be used as you want

0 commit comments

Comments
 (0)