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

height #67

Closed ahoyahoy closed 10 months ago

ahoyahoy commented 1 year ago

Can you please implement size() middleware or something to control max height dropdowm menu inside portal?

ycs77 commented 10 months ago

Hi @ahoyahoy, I currently do not plan to implement the size() feature. I suggest you can directly use Floating UI to implement it. On the one hand, I am not using this function myself. On the other hand, this function is more complex, and I do not know how it will affect the current package. You can implement your function more freely by using Floating UI directly.

Thank you for your understanding.

ycs77 commented 10 months ago

Of course, if you have a specific use case and you need to use this function frequently, feel free to submit a PR.