Function: useDriverPosition()
ts
function useDriverPosition(options): UseDriverPositionReturn;Positions a popover against an element (or a rect) with Floating UI, with driver.js semantics: the requested side is kept while it has room, then the opposite and the perpendicular sides are tried; the popover shifts to stay in the viewport (so it sticks to the edge while its element scrolls away), and the arrow keeps pointing at the element. The rendered side and alignment are exposed so class names can reflect them.
Parameters
| Parameter | Type |
|---|---|
options | UseDriverPositionOptions |