atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.86k stars 520 forks source link

Migrate from Popper (v2) to Floating UI (Popper successor) #1071

Open strarsis opened 2 years ago

strarsis commented 2 years ago

Problem

Popper (v2) is now Floating UI (successor).

Solution

It would be great if tippyjs can migrate from Popper (v2) to Floating UI.

aeimi commented 1 year ago

Will v7 be powered by Floating UI?

atomiks commented 1 year ago

I haven't had time to work on Tippy anymore. If you want to make a PR that switches to Floating UI, I can publish it as v7.

aeimi commented 1 year ago

I don't have the skill and time to do so. But what would you recommend. Still using tippy or just try to use some custom code to try to use floating ui? I'm talking here about vanilla js. Is it worth it to drop tippy for new shiny thing? Again, just Vanilla JS.

atomiks commented 1 year ago

@amdiv I think it depends what you're doing with it. If you're just using it for tooltips and simple popovers, definitely not. If you're doing more advanced positioning and need some of the new features Floating UI offers, then maybe. (It also has some bug fixes, but if you aren't noticing them then it doesn't matter).

If Tippy is working fine for you I don't see a reason to change right now

aeimi commented 1 year ago

Cool. Tippy is such an amazing piece of work. It would be sad for me to see it just as 'outdated'. Pushed out by shiny new thing. Now I get why Floating UI website have the same style as Tippy's. You're the man behind it all. Thank you.

sunwrobert commented 1 year ago

@atomiks Are there noticeable performance improvements between using Popper (TippyJS v4) <-> PopperV2 (TippyJS v6) <-> Floating UI?

vlrevolution commented 5 months ago

I'd love to see this implemented as well. The new floating UI has some neat tricks up its sleeves

There's a migration guide for those who have time to work on it: https://floating-ui.com/docs/migration