Skip to content

Commit

Permalink
docs: remove references to css file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljablonski committed May 16, 2023
1 parent bad3476 commit 23b72d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions docs/docs/examples/place.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Changing the placement for the ReactTooltip component.

import { useState } from 'react';
import { Tooltip } from 'react-tooltip'
import 'react-tooltip/dist/react-tooltip.css'

export const TooltipAnchor = ({ children, id, ...rest }) => {
return (
Expand Down Expand Up @@ -41,7 +40,6 @@ The `place` prop and the `data-tooltip-place` attribute accept the following val

```jsx
import { Tooltip } from 'react-tooltip';
import 'react-tooltip/dist/react-tooltip.css';

<a id="my-tooltip-anchor">◕‿‿◕</a>
<Tooltip anchorSelect="#my-tooltip-anchor" content="Hello world from the top!" place="top" />
Expand All @@ -60,7 +58,6 @@ import 'react-tooltip/dist/react-tooltip.css';

```jsx
import { Tooltip } from 'react-tooltip';
import 'react-tooltip/dist/react-tooltip.css';

const PLACES = ['top', 'right', 'bottom', 'left']
const [place, setPlace] = useState(0)
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If there isn't, feel free to [submit a new issue here](https://github.com/ReactT

## The tooltip is broken/not showing up

Make sure you've imported the default styling. You only need to do this once on your application, `App.jsx`/`App.tsx` is usually a good place to do it.
Make sure you've imported the default styling. You only need to do this once on your application and only if you are using a version before `5.13.0`, `App.jsx`/`App.tsx` is usually a good place to do it.

```jsx
import 'react-tooltip/dist/react-tooltip.css'
Expand Down

0 comments on commit 23b72d0

Please sign in to comment.