@melt-ui/svelte
Version:

8 lines (7 loc) • 420 B
TypeScript
import type { FloatingConfig } from './types.js';
import { noop } from '../../helpers/index.js';
import type { VirtualElement } from '@floating-ui/core';
export declare function isVirtualElement(element: unknown): element is VirtualElement;
export declare function useFloating(reference: HTMLElement | VirtualElement | undefined, floating: HTMLElement | undefined, opts?: FloatingConfig): {
destroy: typeof noop;
};