UNPKG

831 BTypeScriptView Raw
1import { UsePopperOptions, Offset, Placement, Modifiers } from './usePopper';
2export declare type Config = {
3 flip?: boolean;
4 fixed?: boolean;
5 alignEnd?: boolean;
6 enabled?: boolean;
7 containerPadding?: number;
8 arrowElement?: Element | null;
9 enableEvents?: boolean;
10 offset?: Offset;
11 placement?: Placement;
12 popperConfig?: UsePopperOptions;
13};
14export declare function toModifierMap(modifiers: Modifiers | undefined): Record<string, Partial<import("./usePopper").Modifier<any, any>>>;
15export declare function toModifierArray(map?: Modifiers | undefined): Partial<import("@popperjs/core").Modifier<any, any>>[];
16export default function mergeOptionsWithPopperConfig({ enabled, enableEvents, placement, flip, offset, fixed, containerPadding, arrowElement, popperConfig, }: Config): UsePopperOptions;