Skip to main content

Popover

Display floating content anchored to a trigger, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
triggerReactNode-
renderReactElement-
triggerLabelstring-
titlestring-The popup's heading, wired up by Base UI's own Popover.Title.
The popup's heading, wired up by Base UI's own Popover.Title.
descriptionReactNode-The body text, wired up by Base UI's own Popover.Description.
The body text, wired up by Base UI's own Popover.Description.
childrenReactNode-
sidetop | right | bottom | leftbottom
sideOffsetnumber8Gap between the trigger and the popup, or its arrow tip, in pixels.
Gap between the trigger and the popup, or its arrow tip, in pixels.
arrowbooleantrue
openOnHoverbooleanfalse
delaynumber300
openboolean-
onOpenChange(open: boolean) => void-Called whenever the popup opens or closes, controlled or not.
Called whenever the popup opens or closes, controlled or not.
showClosebooleanfalse
triggerVarianticon | labeliconicon is a fixed square for a glyph alone; label gives the trigger room to pair an icon with text.
icon is a fixed square for a glyph alone; label gives the trigger room to pair an icon with text.
shapenone | rounded | pillrounded
animatedbooleantrue
classNamestring-
focusboolean | stringtrue
containerHTMLElement | null-