Skip to content

Commit e4fd36e

Browse files
docs: warning about CSS file being required
1 parent b3dea62 commit e4fd36e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ In versions >=5.8.0, we've introduced the `data-tooltip-id` attribute, and the `
5353

5454
1 . Import the CSS file to set default styling.
5555

56+
> :warning: You must import the CSS file or the tooltip won't show!
57+
5658
```js
5759
import 'react-tooltip/dist/react-tooltip.css'
5860
```

docs/docs/getting-started.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ For more info and more complex use cases using `anchorSelect`, check [the exampl
5858

5959
### Set the default styling
6060

61+
:::caution
62+
63+
You must import the CSS file or the tooltip won't show!
64+
65+
:::
66+
6167
```js
6268
import 'react-tooltip/dist/react-tooltip.css'
6369
```

0 commit comments

Comments
 (0)