UNPKG

svelte-5-ui-lib

Version:

Svelte 5 UI Lib is a UI library built from scratch to leverage Svelte 5's runes system, creating smooth, reactive components.

11 lines (10 loc) 594 B
import type { PopoverProps, TooltipPositionOptions, PositionResult, Position } from './type'; import Popover from './Popover.svelte'; import { popover } from './theme'; /** * Calculates the position for a tooltip relative to a reference element. * @param options - The options for positioning * @returns The calculated position for the tooltip and arrow */ declare function calculateTooltipPosition({ tooltipRect, referenceRect, position, offset, arrowRect }: TooltipPositionOptions): PositionResult; export { Popover, popover, type PopoverProps, type Position, calculateTooltipPosition };