pub fn compute_position<Element, Window>(
    reference: &Element,
    floating: &Element,
    config: ComputePositionConfig<'_, Element, Window>
) -> ComputePositionReturn
Expand description

Computes the x and y coordinates that will place the floating element next to a given reference element.

This export does not have any platform interface logic. You will need to write one for the platform you are using Floating UI with.

See Platform.