Function useViewportInfo

useViewportInfo hook provides the dimensions of both the window and the screen. Useful for responsive layouts and dynamically adapting UI components based on available space.

  • Returns {
        screenDimensions: ScaledSize;
        windowDimensions: ScaledSize;
    }

    An object containing both the window and screen dimensions.

    • screenDimensions: ScaledSize
    • windowDimensions: ScaledSize