You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
480 B

2 months ago
  1. import type { State, SideObject, Padding, PositioningStrategy } from "../types";
  2. import type { Placement, Boundary, RootBoundary, Context } from "../enums";
  3. export declare type Options = {
  4. placement: Placement;
  5. strategy: PositioningStrategy;
  6. boundary: Boundary;
  7. rootBoundary: RootBoundary;
  8. elementContext: Context;
  9. altBoundary: boolean;
  10. padding: Padding;
  11. };
  12. export default function detectOverflow(state: State, options?: Partial<Options>): SideObject;