@material-tailwind/html
Version:
Material Tailwind is an open-source library that uses the power of Tailwind CSS and React to help you build unique web projects faster and easier. The stunning design inspired by Material Design is a bonus!
17 lines (16 loc) • 527 B
TypeScript
import { Instance } from "@popperjs/core";
export declare class Dropdown {
dropdown: HTMLElement;
button: HTMLElement;
menu: HTMLElement;
popperInstance: Instance | null;
placement: string;
constructor(dropdownElement: HTMLElement);
init(): Promise<void>;
toggleDropdown(): void;
openDropdown(): void;
closeDropdown(): void;
}
export declare function initDropdowns(): void;
export declare function cleanupDropdowns(): void;
export declare function loadAndInitDropdowns(): Promise<void>;