Popover
A floating content panel that appears on click, supporting rich interactive content.
Default
Positions
Use the
side
prop to control where the popover appears.
Positions
With Form
Popovers can contain interactive content like forms.
With Form
Dynamic Trigger Text
The trigger slot receives an
open
boolean for dynamic content.
Dynamic Trigger
User Profile Example
A common use case for popovers is displaying user profile information.
User Profile
Accessibility
The popover component includes proper ARIA attributes:
-
aria-expandedon the trigger button -
aria-controlslinking trigger to content -
role="dialog"on the popover content - Escape key closes the popover
- Click outside closes the popover