Preparing search index...
The search index is not available
react-declarative
react-declarative
types
react-declarative
useMediaContext
Function useMediaContext
Returns an object containing information about the current media context.
useMediaContext
()
:
{
isDesktop
:
boolean
;
isMobile
:
boolean
;
isPhone
:
boolean
;
isTablet
:
boolean
;
isWide
:
boolean
;
}
Returns
{
isDesktop
:
boolean
;
isMobile
:
boolean
;
isPhone
:
boolean
;
isTablet
:
boolean
;
isWide
:
boolean
;
}
The media context object.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
react-declarative
Loading...
Returns an object containing information about the current media context.