You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
437 B
10 lines
437 B
|
2 months ago
|
/// <reference types="react" />
|
||
|
|
type UseIntersectionObserverInit = Pick<IntersectionObserverInit, 'rootMargin' | 'root'>;
|
||
|
|
type UseIntersection = {
|
||
|
|
disabled?: boolean;
|
||
|
|
} & UseIntersectionObserverInit & {
|
||
|
|
rootRef?: React.RefObject<HTMLElement> | null;
|
||
|
|
};
|
||
|
|
export declare function useIntersection<T extends Element>({ rootRef, rootMargin, disabled, }: UseIntersection): [(element: T | null) => void, boolean, () => void];
|
||
|
|
export {};
|