@ebay/ui-core-react
Version:
Skin components build off React
16 lines • 503 B
TypeScript
import { RefObject } from "react";
type UseTooltipArgs = {
onExpand?: () => void;
onCollapse?: () => void;
initialExpanded?: boolean;
expanded?: boolean;
hostRef?: RefObject<HTMLElement>;
};
type UseTooltip = {
isExpanded: boolean;
expandTooltip: () => void;
collapseTooltip: () => void;
};
export declare const useTooltip: ({ onExpand, onCollapse, initialExpanded, expanded, hostRef, }: UseTooltipArgs) => UseTooltip;
export {};
//# sourceMappingURL=use-tooltip.d.ts.map