targetRef | RefObject<Element> | — | The ref for the element which the overlay positions itself with respect to. |
overlayRef | RefObject<Element> | — | The ref for the overlay element. |
boundaryElement | Element | document.body | Element that that serves as the positioning boundary. |
scrollRef | RefObject<Element> | overlayRef | A ref for the scrollable region within the overlay. |
shouldUpdatePosition | boolean | true | Whether the overlay should update its position automatically. |
onClose | () => void | — | Handler that is called when the overlay should close. |
maxHeight | number | — | The maxHeight specified for the overlay element.
By default, it will take all space up to the current viewport height. |
placement | Placement | 'bottom' | The placement of the element with respect to its anchor element. |
containerPadding | number | 12 | The placement padding that should be applied between the element and its
surrounding container. |
offset | number | 0 | The additional offset applied along the main axis between the element and its
anchor element. |
crossOffset | number | 0 | The additional offset applied along the cross axis between the element and its
anchor element. |
shouldFlip | boolean | true | Whether the element should flip its orientation (e.g. top to bottom or left to right) when
there is insufficient room for it to render completely. |
isOpen | boolean | — | Whether the element is rendered. |