blob: 393cc8b2ac986fc4cd0482d117bb5805a7061146 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import type { Placement, Boundary, RootBoundary } from "../enums";
import type { Rect, Modifier, Padding } from "../types";
declare type TetherOffset = ((arg0: {
popper: Rect;
reference: Rect;
placement: Placement;
}) => number | {
mainAxis: number;
altAxis: number;
}) | number | {
mainAxis: number;
altAxis: number;
};
export declare type Options = {
mainAxis: boolean;
altAxis: boolean;
boundary: Boundary;
rootBoundary: RootBoundary;
altBoundary: boolean;
/**
* Allows the popper to overflow from its boundaries to keep it near its
* reference element
*/
tether: boolean;
tetherOffset: TetherOffset;
padding: Padding;
};
export declare type PreventOverflowModifier = Modifier<"preventOverflow", Options>;
declare const _default: PreventOverflowModifier;
export default _default;
|