import { SvelteComponent, Snippet } from 'svelte'; import { HTMLAttributes } from 'svelte/elements'; export interface Props { class?: string; /** * Component's HTML Element * * @default 'div' */ component?: string | typeof SvelteComponent; /** * Object with Tailwind CSS colors classes * */ colors?: { /** * Popup bg color * * @default 'bg-white dark:bg-black' */ bg?: string; }; /** * Allows to open/close Popup and set its initial state * * @default false */ opened?: boolean; /** * Enables Popup backdrop (dark semi transparent layer behind) * * @default true */ backdrop?: boolean; /** * Click handler on backdrop element */ onBackdropClick?: (e: any) => void; } interface PopupProps {} interface PopupProps extends Props {} interface PopupEvents extends Record<'',{}>{} declare class Popup extends SvelteComponent< PopupProps & Omit, keyof Props>, PopupEvents, { } > {} export default Popup;