@smart-react-components/ui
Version:
SRC UI includes React and Styled components.
23 lines (22 loc) • 918 B
TypeScript
/// <reference types="react" />
import { SetState } from '@smart-react-components/core/types';
import { TransitionBeforeCallback } from '@smart-react-components/transition/types';
import { TriggerInteraction } from '../types';
interface Props {
beforeShow?: TransitionBeforeCallback;
boxEl: React.MutableRefObject<HTMLDivElement>;
getTriggerEl: () => HTMLElement;
handlePosition: (e: MouseEvent | TouchEvent) => void;
hoverDelay?: number;
isDismissible: boolean;
key: string;
setStatus?: SetState<boolean>;
status?: boolean;
triggerInteraction: TriggerInteraction;
}
interface Return {
handleBeforeShow: TransitionBeforeCallback;
getStatus: () => boolean;
}
declare const useFixedBoxMethods: ({ beforeShow, boxEl, getTriggerEl, handlePosition, hoverDelay, isDismissible, key, setStatus, status, triggerInteraction }: Props) => Return;
export default useFixedBoxMethods;