UNPKG

@atlaskit/popper

Version:

A wrapper for React Popper for situations which require a bespoke popup where other ADS components are deemed unsuitable

22 lines (21 loc) 714 B
export declare function getMaxSizeModifiers({ viewportPadding }: { viewportPadding: number; }): [{ /** * Performing DOM measurements in the 'read' phase, * which is the convention for popper modifiers */ readonly name: "maxSizeData"; readonly enabled: true; readonly phase: "read"; readonly fn: ({ state, name }: import("@popperjs/core").ModifierArguments<any>) => void; }, { /** * Applying max size CSS */ readonly name: "maxSize"; readonly enabled: true; readonly phase: "beforeWrite"; readonly requiresIfExists: ["offset", "preventOverflow", "flip"]; readonly fn: ({ state }: import("@popperjs/core").ModifierArguments<any>) => void; }];