ycs77 / headlessui-float

Easily use Headless UI with Floating UI to position floating elements.
https://headlessui-float.vercel.app
MIT License
342 stars 11 forks source link

Support for @headlessui/react version 2 #115

Closed PodStuart closed 1 month ago

PodStuart commented 1 month ago

Is your feature request related to a problem? Please describe. Unable to upgrade to @headlessui/react version 2.

Describe the solution you'd like Support for @headlessui/react version 2.

Describe alternatives you've considered Dropping use of @headlessui-float/react.

ycs77 commented 1 month ago

Hi @PodStuart. Sorry, I can not support the @headlessui/react v2.

Because the @headlessui/react v2 includes the Floating UI, conflict arises in this package, which cannot function normally.

So, I suggest you abandon this package, upgrade to @headlessui/react v2 to use the anchor prop instead of this package, and reference the example to using the transition for menu or other components.

razzeee commented 3 weeks ago

But you can't do autoplacement with the anchor prop?

I've also migrated some of our projects and they all seem to run fine, as far as I can tell.

ycs77 commented 3 weeks ago

@razzeee

But you can't do autoplacement with the anchor prop?

Although I can do auto-placement, but the anchor prop of Headless UI v2 only implements the auto-placement feature, so I can't support the other features of this package.

The usage of Floating UI APIs with this package and Headless UI v2 is different, I am unable to implement full feature support (like Floating UI options, arrow, portal...) for Headless UI v2, and this package is non-invasive to the Headless UI, if the Headless UI has changed and this package will be affected a lot. So I give up support it. 😅

I've also migrated some of our projects and they all seem to run fine, as far as I can tell.

If you run fine, continue to do it!

scottwillman commented 1 week ago

Well @ycs77 - Let me just say thank you for supporting it while you could!! Much love. It's been a big help to me at missn.com.