UNPKG

svooltip

Version:

A basic Svelte tooltip directive. Powered by [Floating UI](https://floating-ui.com/).

12 lines (11 loc) 391 B
import type { Options } from './types'; import type { Snippet } from 'svelte'; type $$ComponentProps = Options & { /** Sets the wrapper to `display: block`. */ block: boolean; children: Snippet; as: keyof HTMLElementTagNameMap; }; declare const Tooltip: import("svelte").Component<$$ComponentProps, {}, "">; type Tooltip = ReturnType<typeof Tooltip>; export default Tooltip;