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