Skip to content

Commit 9b1acdf

Browse files
docs: highlight CTA to check the examples
1 parent c51f037 commit 9b1acdf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ We usually recommend placing the tooltip component directly inside the root comp
194194
You should avoid needlessly using a large amount of `<Tooltip />` components. One tooltip component that you use across your whole application should be good enough in most cases, but you should be fine to add a few more if you need to use different styled tooltips.
195195

196196
Here's a simple example on how to improve performance when using dynamically generated items.
197-
Check the docs for examples for the [`anchorSelect`](https://react-tooltip.com/docs/examples/anchor-select) and [`render`](https://react-tooltip.com/docs/examples/render) props for more complex use cases.
197+
198+
> Check the docs for examples for the [`anchorSelect`](https://react-tooltip.com/docs/examples/anchor-select) and [`render`](https://react-tooltip.com/docs/examples/render) props for more complex use cases.
198199
199200
```jsx
200201
// ❌ BAD

docs/docs/troubleshooting.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export const TooltipAnchor = ({ children, id, ...rest }) => {
3434
)
3535
}
3636

37+
:::info
38+
3739
Before trying these, make sure you're running the latest ReactTooltip version with
3840

3941
```sh
@@ -46,6 +48,8 @@ or
4648
yarn add react-tooltip@latest
4749
```
4850

51+
:::
52+
4953
If you can't find your problem here, make sure there isn't [an open issue on GitHub](https://github.com/ReactTooltip/react-tooltip/issues) already covering it.
5054
If there isn't, feel free to [submit a new issue here](https://github.com/ReactTooltip/react-tooltip/issues/new/choose).
5155

@@ -73,8 +77,13 @@ We usually recommend placing the tooltip component directly inside the root comp
7377
You should avoid needlessly using a large amount of `<Tooltip />` components. One tooltip component that you use across your whole application should be good enough in most cases, but you should be fine to add a few more if you need to use different styled tooltips.
7478

7579
Here's a simple example on how to improve performance when using dynamically generated items.
80+
81+
:::info
82+
7683
Check the examples for the [`anchorSelect`](./examples/anchor-select) and [`render`](./examples/render) props for more complex use cases.
7784

85+
:::
86+
7887
```jsx
7988
// ❌ BAD
8089
<div className="items-container">

0 commit comments

Comments
 (0)