Skip to content
SevenUI
Sign in
On this page

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.

PropTypeDefault
open / defaultOpenbooleanfalse
onOpenChange(open: boolean) => void—
modaltrue | 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.

PropTypeDefault
openOnHoverbooleanfalse
delaynumber300 (ms)
closeDelaynumber0 (ms)

PopoverContent

PropTypeDefault
side / alignpositioner placement"bottom" / "center"
initialFocus / finalFocusfocus 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.

Was this page helpful?