You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`<TooltipTrigger />` is the only component exposed by the package.
44
-
It doesn't render anything itself. It calls the render functions and renders that.
43
+
`TooltipTrigger` is the only component exposed by the package. It's just a positioning engine. What to render is left completely to the user, which can be provided using render props.
45
44
46
-
Read more about [render prop](https://cdb.reacttraining.com/use-a-render-prop-50de598f11ce) pattern
47
-
if you're not familiar with this approach.
45
+
Read more about [render prop](https://cdb.reacttraining.com/use-a-render-prop-50de598f11ce) pattern if you're not familiar with this approach.
48
46
49
47
## Quick start
50
48
51
-
The package itself doesn't expose any styles and doesn't render anything. To start using it you
52
-
have to provide styles and markup for the tooltip to be displayed. You may use default styles from
53
-
`react-popper-tooltip/dist/styles.css` or add your own.
49
+
If you would like our opinionated container and arrow styles for your tooltip for quick start, you may import `react-popper-tooltip/dist/styles.css`, and use the classes `tooltip-container` and `tooltip-arrow` as follows:
0 commit comments