Components
Popover

Popover

Popover containers allow merchants to access and interact with more information of an item through an overlay.

Optional props

asChild

Children composition

type
boolean
default
false

portal

Should activate portal

type
boolean
default
true

getAnchorRect

Function that returns the anchor element's DOMRect. If this is explicitly passed, it will override the anchor getBoundingClientRect method.

Live examples:

type
((anchor: HTMLElement
null) => AnchorRect
null)
default
null