themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.3k stars 710 forks source link

Support the Popover api #842

Closed xcaptain closed 1 week ago

xcaptain commented 3 months ago

Please support the new Popover api: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API

With this, we can achieve dropdown menu, modal without writting js

zoltanszogyenyi commented 1 week ago

Hey @xcaptain,

We will consider it, but the dropdowns that we have also calculate the width and height of the container.

This means that it could still be more advantageous to use our current API as opposed to the new HTML Popover.

Also not sure this actually works with hover too.

Cheers, Zoltan