React Hookers - v6.3.0
    Preparing search index...

    Interface ViewportProps

    Props of the useViewport hook.

    interface ViewportProps {
        onResize?: (rect: DOMRect) => void;
    }
    Index

    Properties

    Properties

    onResize?: (rect: DOMRect) => void

    A handler that is called when a viewport is resized.

    Type declaration

      • (rect: DOMRect): void
      • Parameters

        • rect: DOMRect

          A viewport bounding rect.

        Returns void