Other properties and options

This page includes reference documentation for the PopoverOptions type used by multiple components in the Mapbox Search JS Web framework.

PopoverOptions

Options controlling the display of the Popover used in AddressAutofill, MapboxSearchBox, and MapboxGeocoder.

Type

Object

Properties

NameDescription
flip boolean If true, the popover will flip to the opposite side of the reference element to try to keep it in view when scrolling out of frame. Defaults to false.
offset number The distance gap between the popover and the reference element. Defaults to 5px.
placement ("top-start" | "bottom-start") Positions the popover above or below the reference element. Defaults to 'bottom-start'.
Was this section on PopoverOptions helpful?YesNo