use-orientation
Detects device orientation and subscribe to its changes
Source
Docs
PackageIcon
Usage
The useOrientation hook 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 the @mantine/hooks package;
you can import them in your application: