@ebay/ebayui-core
Version:
Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.
27 lines (26 loc) • 768 B
TypeScript
import type { autoUpdate, computePosition, shift, flip, offset, ReferenceElement } from "@floating-ui/dom";
interface DropdownUtilOptions {
reverse?: boolean;
flip?: boolean;
strategy?: "absolute" | "fixed";
offset?: number;
}
export declare class DropdownUtil {
host: ReferenceElement;
overlay: HTMLElement;
cleanupFn: any;
options: DropdownUtilOptions;
loaded: boolean;
triggerShow: boolean;
computePosition: typeof computePosition;
autoUpdate: typeof autoUpdate;
offset: typeof offset;
flip: typeof flip;
shift: typeof shift;
constructor(host: HTMLElement, overlay: HTMLElement, options?: DropdownUtilOptions);
show(): void;
update(): void;
cleanup(): void;
hide(): void;
}
export {};