atomiks / tippyjs-react

React component for Tippy.js (official)
MIT License
1.79k stars 93 forks source link

Importing the CSS file requires the package "tippy.js" in addition to "@tippyjs/react" #391

Open ellvtr opened 1 month ago

ellvtr commented 1 month ago

Importing the CSS file requires the package "tippy.js" in addition to "@tippyjs/react".

This line from your documentation causes a compile error: import 'tippy.js/dist/tippy.css'; // optional

Solution is to install "tippy.js" in addition to "@tippyjs/react".

If that is on purpose, please include it in the documentation. If not, what is the proper way to import the styles?

yansena commented 1 week ago

Importing the CSS file requires the package "tippy.js" in addition to "@tippyjs/react".

This line from your documentation causes a compile error: import 'tippy.js/dist/tippy.css'; // optional

Solution is to install "tippy.js" in addition to "@tippyjs/react".

If that is on purpose, please include it in the documentation. If not, what is the proper way to import the styles?

Exactly, I’m trying to build a third project and the build crash because I can’t find the tippy.css file of tippy.js/dist because the main library is not installed, recommend include in the installation the central library also to stop this crash.