targetRef | RefObject<HTMLElement> | — | The ref for the element which the overlay positions itself with respect to. |
overlayRef | RefObject<HTMLElement> | — | The ref for the overlay element. |
boundaryElement | HTMLElement | document.body | Element that that serves as the positioning boundary. |
scrollRef | RefObject<HTMLElement> | 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. |
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. |