Popover
A popup that displays information related to an element when the element receives keyboard focus, the mouse hovers over it, or it is clicked.
Component Features
- 🛠️ Multi-direction: Supports 12 directions including top, bottom, left, right and their start/end variations.
- 🖱️ Multiple Triggers: Supports various trigger methods such as click, hover, and focus.
- 🎨 Theme Customization: Supports global theme customization based on
BrConfigProvider, and local style overrides via TailwindCSS.
Basic Usage
The most basic popover display triggered by a click.
Position
Supports placement property to control the pop-up position, supporting 12 different directions.
Custom Trigger Methods
Supports click, hover, and focus trigger methods, which can be configured via the trigger prop.
Theme Customization
Combined with BrConfigProvider, you can globally override the default styles of the component. Styles can also be overridden locally via TailwindCSS.
Loading & Empty States
Supports displaying loading and empty states in the popover content.
API Reference
BrPopover
BrPopoverContent
BrPopoverTrigger
Used to wrap the trigger element. Use as-child to pass the event to the child element.
BrPopoverArrow
Used to display the arrow pointing to the trigger. Can be customized with class (e.g. fill-popover).
BrPopoverClose
Used to wrap the close button. Use as-child to pass the event to the child element.