Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Releases: atomiks/tippyjs-react

v4.0.2

21 Apr 11:03
Compare
Choose a tag to compare

Fixes

  • className prop with useSingleton

v4.0.1

17 Apr 09:38
Compare
Choose a tag to compare

Fixes

  • useSingleton updates

v4.0.0

13 Apr 10:06
Compare
Choose a tag to compare

Tippy 6 + Popper 2 + Headless rendering support 🎉

NOTE: I have removed the . from the scoped organization due to issues with some shells, please remove @tippy.js/react and install the latest version:

npm i @tippyjs/react

yarn add @tippyjs/react

Breaking

  • 🔴 Deleted <TippySingleton />
  • 🔴useSingleton API changed (see docs)
  • 🔴enabled is now disabled (inverted logic)
  • 🔴 tippy.js@6 upgrade (see migration guide)
  • 🔴 props.hideOnClick is always false if visible is specified

v4.0.0-alpha.4

17 Mar 09:11
Compare
Choose a tag to compare
v4.0.0-alpha.4 Pre-release
Pre-release

Breaking

🔴props.hideOnClick is always false if visible is specified

Fixes

  • (useSingleton): overrides dependency
  • (useSingleton): memo the return value

v4.0.0-alpha.1

07 Mar 04:26
Compare
Choose a tag to compare
v4.0.0-alpha.1 Pre-release
Pre-release

Fixes

  • headless import imports from tippy.js/headless
  • useSingleton API changed to support headless rendering

v4.0.0-alpha.0

05 Mar 23:53
dde83fd
Compare
Choose a tag to compare
v4.0.0-alpha.0 Pre-release
Pre-release

Tippy 6 + Popper 2 + Headless rendering support 🎉

NOTE: I have removed the . from the scoped organization due to issues with some shells, please remove @tippy.js/react and install the latest version:

npm i @tippyjs/react

yarn add @tippyjs/react

Breaking

  • 🔴 Deleted <TippySingleton />
  • 🔴useSingleton API changed (see docs)
  • 🔴enabled is now disabled (inverted logic)
  • 🔴 tippy.js@6 upgrade (see migration guide)

v3.1.1

03 Nov 14:48
Compare
Choose a tag to compare

Fixes

  • Filter __source and __self dev props (#145)
  • types: strict types for plugins

v3.1.0

12 Oct 01:59
Compare
Choose a tag to compare

Features

  • Introduce a useSingleton hook (#133)

Fixes

  • types: Fix Props interface support (#137)
  • singleton: Add support for plugins & enabled prop (#135, #138)

v3.0.1

01 Oct 18:51
Compare
Choose a tag to compare

Fixes

  • core: Add className support to <TippySingleton /> (#129)
  • core: className should sync with children change (#130)
  • types: Use Partial<Props> instead (#127)

v3.0.0

28 Sep 17:49
Compare
Choose a tag to compare

Breaking changes

import Tippy from '@tippy.js/react';
import 'tippy.js/dist/tippy.css';
  • <TippyGroup /> was replaced with <TippySingleton />. You should pass all the non-content props to <TippySingleton />, with each <Tippy /> child having content props.

  • Deprecated isVisible/isEnabled props removed – use visible and enabled

Features

  • plugins prop 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>
  );
}