/** * SvTooltip - a small hover/focus tooltip anchored to its child, portalled to * so it is never clipped. Positioned by the shared engine (full placement * matrix + flip + shift + arrow), shows after a short delay, hides on leave / * blur / Escape, and is wired via `aria-describedby` (role="tooltip") onto the * focusable child itself, so AT users get it announced on focus, not just * sighted users on hover. * * Set `group` on several tooltips so scanning between them skips the re-delay, * `closeDelay` + `interactive` for a hoverable tip (e.g. one with a link). * * ```svelte * * ``` */ import type { Snippet } from 'svelte'; import { type Placement } from './positioning'; type Props = { text: string; /** Preferred placement; flips when there is no room. Default `top`. */ placement?: Placement; /** Show delay in ms. Default 300. */ delay?: number; /** Hide delay in ms after leave (give it room for an interactive tip). Default 0. */ closeDelay?: number; /** Delay-group id: grouped tooltips open instantly while the group is warm. */ group?: string; /** Let the pointer move onto the tip without closing it (e.g. a tip with a link). */ interactive?: boolean; disabled?: boolean; children?: Snippet; }; declare const SvTooltip: import("svelte").Component; type SvTooltip = ReturnType; export default SvTooltip;