react-tooltip-z
Version:
Lightweight, customizable React tooltip component with hover, click, focus and manual trigger support.
19 lines (18 loc) • 644 B
TypeScript
/// <reference types="react" />
interface Props {
onOpenChange?: (open: boolean) => void;
}
export declare function useTooltipController({ onOpenChange, }: Props): {
statusTooltip: {
show?: boolean | undefined;
target?: HTMLElement | Element | null | undefined;
};
setStatusTooltip: import("react").Dispatch<import("react").SetStateAction<{
show?: boolean | undefined;
target?: HTMLElement | Element | null | undefined;
}>>;
dynamicContent: any;
showTooltip: (content?: any, target?: HTMLElement | Element | null) => void;
hideTooltip: () => void;
};
export {};