We need a behavior that calculates the position of a floating element that is anchored to a reference element, avoiding screen overflow. This will be used to implement overlays, which will power several components, including Dialog, Popover, and SelectMenu.
We need a behavior that calculates the position of a floating element that is anchored to a reference element, avoiding screen overflow. This will be used to implement overlays, which will power several components, including Dialog, Popover, and SelectMenu.