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