This repository was archived by the owner on Nov 9, 2024. It is now read-only.
v3.0.0
Breaking changes
-
Upgraded from
tippy.js@4totippy.js@5. Read the migration guide for information. View the release notes as well! -
CSS is not injected automatically anymore, instead, import the CSS:
import Tippy from '@tippy.js/react';
import 'tippy.js/dist/tippy.css';-
<TippyGroup />was replaced with<TippySingleton />. You should pass all the non-contentprops to<TippySingleton />, with each<Tippy />child havingcontentprops. -
Deprecated
isVisible/isEnabledprops removed – usevisibleandenabled
Features
pluginsprop to use new plugins from core:
import Tippy from '@tippy.js/react';
import {followCursor} from 'tippy.js';
import 'tippy.js/dist/tippy.css';
function App() {
return (
<Tippy content="Tooltip" followCursor={true} plugins={[followCursor]}>
<button />
</Tippy>
);
}