useOverlayPosition
Handles positioning overlays like popovers and menus relative to a trigger
element, and updating the position when the window resizes.
useOverlayPosition(
(props: AriaPositionProps
)): PositionAria
See useOverlayTrigger for an example of using
useOverlayPosition
to position a popover relative to its trigger button.
'bottom'
| 'bottom left'
| 'bottom right'
| 'bottom start'
| 'bottom end'
| 'top'
| 'top left'
| 'top right'
| 'top start'
| 'top end'
| 'left'
| 'left top'
| 'left bottom'
| 'start'
| 'start top'
| 'start bottom'
| 'right'
| 'right top'
| 'right bottom'
| 'end'
| 'end top'
| 'end bottom'
Properties
Methods
Method | Description |
updatePosition(): void | |
'top'
| 'bottom'
| 'left'
| 'right'