UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

15 lines 438 B
import { RefCallback } from 'react'; interface UseIntersectionObserverConfig { initialState?: boolean; } /** * A hook that uses an Intersection Observer on the target element ref * and detects if the element is intersecting with its parent. */ export declare function useIntersectionObserver<T extends HTMLElement>({ initialState }?: UseIntersectionObserverConfig): { ref: RefCallback<T>; isIntersecting: boolean; }; export {};