use-os
Detects user operating system
Source
Docs
PackageIcon
Usage
The use-os hook returns the user's operating system. Possible values are: undetermined, macos, ios, windows, android, linux, chromeos.
If the OS cannot be identified, for example, during server-side rendering, undetermined will be returned.
Your os is undetermined
Definition
Exported types
UseOsOptions and UseOSReturnValue types are exported from the @mantine/hooks package;
you can import them in your application: