detectOverflow

external fun detectOverflow(state: MiddlewareState, options: DetectOverflowOptions = definedExternally): Promise<SideObject>

Resolves with an object of overflow side offsets that determine how much the element is overflowing a given clipping boundary on each side.

  • positive = overflowing the boundary by that number of pixels

  • negative = how many pixels left before it will overflow

  • 0 = lies flush with the boundary

See also

https

://floating-ui.com/docs/detectOverflow