UNPKG

@onesy/ui-react

Version:
24 lines (23 loc) 542 B
export declare type IUseVisibleResponse = IntersectionObserverEntry & { visible?: boolean; percentage?: number; }; export declare type IUseVisible = { element: HTMLElement; visibleDefault?: boolean; options?: IntersectionObserverInit; addClasses?: boolean; classes?: { in?: string; }; addStyles?: boolean; styles?: { in?: any; out?: any; }; }; declare const useVisible: { (props: IUseVisible): IUseVisibleResponse; displayName: string; }; export default useVisible;