ycs77 / headlessui-float

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

Support for Virtual Elements #30

Closed designbyadrian closed 1 year ago

designbyadrian commented 1 year ago

Floating supports virtual elements, which can be used for contextual menus, for example.

How do I achieve this with headlessui-float?

ycs77 commented 1 year ago

I will consider adding this feature but will have to wait until I have time. 😅

ycs77 commented 1 year ago

Now support the virtual element in v0.11, can see the docs Virtual Element to use it.

And the demo has the example of virtual element.