You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 20, 2023. It is now read-only.
@@ -34,22 +34,33 @@ The hooks (`useResponsive` and `useIsMobile`) are the preferred method of using
34
34
When possible, use the `withIsMobile` and `useIsMobile` for mobile devices detection. In the future we might use it to automatically splitting of mobile-only code.
| isCalculated | Boolean | False on first render. Once true, it means all breakpoints values are based on the window. |
47
-
| mediaType | String | The current media type (breakpoint) name (ex: `'md'`). |
48
-
| lessThan | Object | Object containing if current window width is less than a breakpoint (usage: `lessThan.lg`). |
49
-
| greaterThan | Object | Object containing if current window width is greater than a breakpoint (usage: `greaterThan.lg`). |
50
-
| is | Object | Object containing if current window width is the at a breakpoint (usage: `is.lg`). |
51
-
| orientation | String | Current browser orientation (portrait, landscape or defined defaultOrientation at ResponsiveProvider, when others not available) |
| initialMediaType | '_initial' <br>| 'xs' <br>| 'sm' <br>| 'md' <br>| 'lg' <br>| 'xl'| no | 'xs' | Initial media type before the calculation of the real measures |
40
+
| defaultOrientation | 'landscape' <br>| 'portrait' | no | null | Initial orientation before the calculation of the real measures |
| orientation | string | Current browser orientation |
52
+
| isCalculated | boolean | False on first render. Once true, it means all breakpoints values are based on the window. |
53
+
| is | { _initial: boolean, xs: boolean, sm: boolean, md: boolean, lg: boolean, xl: boolean } | Object key breakpoint name and value boolean that shows if width is at a certain breakpoint |
54
+
| lessThan | { _initial: boolean, xs: boolean, sm: boolean, md: boolean, lg: boolean, xl: boolean } | Object key breakpoint name and value boolean that shows if width is less than a certain breakpoint |
55
+
| greaterThan | { _initial: boolean, xs: boolean, sm: boolean, md: boolean, lg: boolean, xl: boolean } | Object key breakpoint name and value boolean that shows if width is greater than a certain breakpoint |
56
+
57
+
## Object returned by the useIsMobile / withIsMobile:
0 commit comments