Skip to components
DEVELOPER REFERENCE · v4.0.0

DropdownPopup API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

DropdownPopup12 props2 callbacks0 methods

Props12

DropdownPopup props
NameTypeDescription
triggerRefRequired
RefObject<HTMLDivElement>Inspect type
Reference to the element that anchors the dropdown popup.
childrenRequired
ComponentChildrenInspect type
Content rendered inside the component. Supply nodes from the framework adapter you are using.
portalTargetOptional
HTMLElement | null | undefinedInspect type
DOM element into which the popup is mounted; omitted values use the component default.
themeOptionalstring | null | undefinedTheme applied to popup content so it matches its surrounding application.
dropdownMenuIdOptionalstring | undefinedID assigned to the mounted dropdown menu.
popupClassNameOptionalstring | undefinedAdditional CSS classes for the popup part of the component.
closeOnClickOutsideOptionalboolean | undefinedCloses the dropdown popup when a pointer interaction occurs outside it.
alignOptional"start" | "end" | undefinedAligns the popup to the start or end of its trigger.
matchTriggerWidthOptionalboolean | undefinedMakes the dropdown popup match the trigger width.
maxHeightOptionalnumber | undefinedMaximum popup height in pixels before its content scrolls.
observePopupResizeOptionalboolean | undefinedRepositions the popup when its size changes.
topLayerOptionalboolean | undefinedPromotes the popup above modal dialogs without joining an ancestor's scroll context.

Events and callbacks2

DropdownPopup events and callbacks
NameTypeDescription
onPointerReleaseOptional
((event: MouseEvent | TouchEvent) => void) | undefinedInspect type
Handles the mouse/touch release associated with a popup interaction.
onCloseOptional
(() => void) | undefinedInspect type
Requests that the parent close the surface or picker.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.