UNPKG

piral-hooks-utils

Version:

Hooks and HOC for pilets and Piral instances.

8 lines (7 loc) 369 B
/** * A hook to indicate something was suddenly visible. * @param time The time after which it should be triggered. * @param cb The callback to use when the part was visible. * @returns The reference to the element which should be watched. */ export declare function useAfterVisible(time: number, cb: () => void): import("react").MutableRefObject<HTMLDivElement>;