Overview
The Popover component displays floating content anchored to a trigger element. Supports both click and hover modes with flexible positioning options.Basic Usage
Props
The display mode of the popover. Use
'hover' for hover cards.Configuration object for popover content positioning and behavior.
Display an arrow pointing to the trigger element.
Render the popover in a portal.
The reference (or anchor) element for positioning. If not provided, uses the trigger element.
When
false, the popover will not close when clicking outside or pressing escape.Controls the open state of the popover (v-model:open).
The default open state when uncontrolled.
The modality of the popover (only for click mode).
Delay in milliseconds before opening (for hover mode).
Delay in milliseconds before closing (for hover mode).
CSS class for styling the trigger element.
Theme customization object for component slots.
Events
Emitted when the open state changes.
Emitted when a close attempt is prevented (when
dismissible is false).Slots
The trigger element for the popover. Receives the current open state.
The content displayed inside the popover. In click mode, receives a
close function.Optional anchor element for positioning (when different from trigger).
Examples
Hover Mode (Hover Card)
With Arrow
Different Positions
With Custom Reference Element
Non-dismissible Popover
Rich Content Popover
Content Props
Thecontent prop accepts the following positioning options:
side:'top' | 'right' | 'bottom' | 'left'- Which side to position the popoversideOffset:number- Distance in pixels from the triggeralign:'start' | 'center' | 'end'- Alignment along the sidealignOffset:number- Offset along the alignment axiscollisionPadding:number | Partial<Record<'top' | 'right' | 'bottom' | 'left', number>>- Padding from viewport edgesavoidCollisions:boolean- Whether to adjust position to avoid collisionssticky:'partial' | 'always'- Sticky behavior during scrolling
Related Components
- Tooltip - For simple text hints
- Dropdown Menu - For action menus
- Context Menu - For right-click menus
- Popover - Reka UI Popover documentation