web-components
web-components copied to clipboard
[Feature Request] Popover Component
Describe your motivation
I often have the requirement to hide some actions or content relatively behind a button. Many UI Libraries have something called a Popover where I can put any content behind a trigger (e.g a button). I know vaadin already has a menu-bar but this is only useful for action items with very little customization.
Describe the solution you'd like
I would love to have a native vaadin-popover component that works pretty much like this example from the headless-ui Library. I think most of the functionality can be taken from the menu-bar implementation!
Describe alternatives you've considered
Using the menu-bar component
Additional context
No response
Thanks for the issue. The closest component that we have is vcf-popup - note, it isn't part of Vaadin components yet.
We might want to also use this as a foundation for "toggletip" - a version of vaadin-tooltip supporting rich content.
Could be related: https://github.com/vaadin/web-components/issues/414
Acceptance Criteria: https://github.com/vaadin/platform/issues/5271
We now have vaadin-popover component released in v24.5.0 which covers this use case. Closing.