Skip to main content
The Popover component displays floating content anchored to a trigger element.

Installation

Usage

Components

PopoverRoot

boolean
Controlled open state.
boolean
Default open state.
function
Callback when state changes.

PopoverPositioner

string
default:"bottom"
Preferred side. Options: top, right, bottom, left
string
default:"center"
Alignment. Options: start, center, end
number
default:"8"
Distance from the trigger.

PopoverPopup

The popover content container with border and shadow.

PopoverArrow

Optional arrow pointing to the trigger.

PopoverTitle

Title for the popover content.

PopoverDescription

Description text.

PopoverClose

Closes the popover when clicked.

Examples

With Arrow

Different Sides

With Close Button

Accessibility

  • Built on @base-ui/react for ARIA support
  • Keyboard navigation (Escape to close)
  • Focus management
  • Proper ARIA attributes
  • Collision detection for positioning