Function useMediaContext

Returns an object containing information about the current media context.

  • Returns {
        isDesktop: boolean;
        isMobile: boolean;
        isPhone: boolean;
        isTablet: boolean;
        isWide: boolean;
    }

    The media context object.

    • isDesktop: boolean
    • isMobile: boolean
    • isPhone: boolean
    • isTablet: boolean
    • isWide: boolean