use-orientation
Detects device orientation and subscribe to its changes
Source
Docs
Package
Usage
useOrientation
returns an object with the current orientation of the device:
Angle: 0
Type: landscape-primary
Definition
Exported types
UseOrientationOptions
and UseOrientationReturnType
types are exported from @mantine/hooks
package,
you can import them in your application: