Popover
Displays rich content in a portal, positioned relative to an anchor element, built on the Base UI Popover primitive.
Installation
Bash
Usage
API reference
Popover
Extends the Base UI Popover Root — all its props apply.
| Prop | Type | Default |
|---|---|---|
open / defaultOpen | boolean | false |
onOpenChange | (open: boolean) => void | — |
modal | true | false | "trap-focus" | false |
modal: true only traps focus if a Close part is rendered inside
PopoverContent — otherwise there’s no way to dismiss with the
keyboard.
PopoverTrigger
Hover-opening lives here, not on the Root.
| Prop | Type | Default |
|---|---|---|
openOnHover | boolean | false |
delay | number | 300 (ms) |
closeDelay | number | 0 (ms) |
PopoverContent
| Prop | Type | Default |
|---|---|---|
side / align | positioner placement | "bottom" / "center" |
initialFocus / finalFocus | focus target on open/close | — |
For custom anchoring (a rect, or a different element than the trigger),
compose the Popover primitive directly and pass anchor to its
Positioner instead of using PopoverContent.
PopoverHeader, PopoverTitle, PopoverDescription
Styled layout parts extending div/the Base UI Title and Description.