Components
Popover
Root component for a popover (non-modal floating panel). Manages open/closed state.
Usage
Best practices
Use
Popoverfor an anchored non-blocking panel dismissed on outside-click / Esc; a page-blocking modal is aDialog, a menu of actions is aDropdownMenu.It's non-modal by default (
modal={false}) so the page stays interactive - passmodalonly when you must trap focus and block the background.PopoverContentportals to the body; anchor to a non-trigger element with itsanchorprop.
Props
PopoverArrow
PopoverBackdrop
PopoverContent
Also exports
- component
Popover - type
PopoverActions - const
popoverAnatomy - component
PopoverTrigger
Anatomy
Composition
Used by