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

    Interface ViewportProps

    Props for the useViewport hook.

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

    Properties

    Properties

    onResize?: (rect: DOMRect) => void

    A callback that is invoked when the viewport is resized.

    Type Declaration

      • (rect: DOMRect): void
      • Parameters

        • rect: DOMRect

          The viewport bounding rectangle.

        Returns void