Preparing search index...
The search index is not available
react-declarative - v2.6.90
react-declarative
useMediaContext
Function useMediaContext
Returns an object containing information about the current media context.
use
Media
Context
(
)
:
{
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.
is
Desktop
:
boolean
is
Mobile
:
boolean
is
Phone
:
boolean
is
Tablet
:
boolean
is
Wide
:
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
react-declarative - v2.6.90
Loading...
Returns an object containing information about the current media context.