@untemps/svelte-use-tooltip
Version:
Svelte action to display a tooltip
36 lines (35 loc) • 1.46 kB
TypeScript
export default useTooltip;
declare function useTooltip(node: any, { content, contentSelector, contentActions, containerClassName, position, animated, animationEnterClassName, animationLeaveClassName, enterDelay, leaveDelay, onEnter, onLeave, offset, disabled }: {
content: any;
contentSelector: any;
contentActions: any;
containerClassName: any;
position: any;
animated: any;
animationEnterClassName: any;
animationLeaveClassName: any;
enterDelay: any;
leaveDelay: any;
onEnter: any;
onLeave: any;
offset: any;
disabled: any;
}): {
update: ({ content: newContent, contentSelector: newContentSelector, contentActions: newContentActions, containerClassName: newContainerClassName, position: newPosition, animated: newAnimated, animationEnterClassName: newAnimationEnterClassName, animationLeaveClassName: newAnimationLeaveClassName, enterDelay: newEnterDelay, leaveDelay: newLeaveDelay, onEnter: newOnEnter, onLeave: newOnLeave, offset: newOffset, disabled: newDisabled }: {
content: any;
contentSelector: any;
contentActions: any;
containerClassName: any;
position: any;
animated: any;
animationEnterClassName: any;
animationLeaveClassName: any;
enterDelay: any;
leaveDelay: any;
onEnter: any;
onLeave: any;
offset: any;
disabled: any;
}) => void;
destroy: () => Promise<void>;
};