UNPKG

@studio-lumio/hooks

Version:

a compilation of react hooks we use to make our magic

10 lines (9 loc) 258 B
export declare function useIsVisible({ root, rootMargin, threshold, once, }: { root?: Element | Document | null; rootMargin?: string; threshold?: number; once?: boolean; }): { setRef: (node: any) => void; inView: boolean; };