Back to Popover
Popover

Placement

Open from top, right, bottom, or left.

API

PropTypeDefaultDescription
content*React.ReactNodePopover body.
titleReact.ReactNodeOptional heading shown above the body.
descriptionReact.ReactNodeOptional muted subtext under the title.
childrenReact.ReactElementInline trigger element wrapped by the popover.
triggerstringMatches `data-popup-id` on an external trigger element.
popupTriggerstringMatches `data-popup` on an external trigger element.
manualTriggerbooleanfalseWith `trigger`, skip auto click toggle and control open state manually.
open / onOpenChangeboolean / (open: boolean) => voidControlled open state.
modalbooleanfalseWhen true, interaction outside is limited like a dialog.
placement"top" | "right" | "bottom" | "left"bottomPreferred placement; flips to stay in viewport.
align"start" | "center" | "end"centerAlignment relative to the trigger.
sideOffsetnumber12Gap in pixels between trigger and panel.
alignOffsetnumberOffset along the alignment axis.
showClosebooleanfalseShow a close button in the panel header.
defaultOpenbooleanInitial open state when uncontrolled.
contentClassNamestringMerged onto the floating panel.
classNamestringMerged onto the floating panel (alias for content styling).
onOpenAutoFocus / onCloseAutoFocus(event: Event) => voidFocus management callbacks forwarded to the content.
View full API on Popover

More Popover examples