use-os
Detects user operating system
Import
Source
Docs
Package
Usage
use-os
returns user's os. Possible values are: undetermined
, macos
, ios
, windows
, android
, linux
.
If the OS cannot be identified, for example, during server side rendering undetermined
will be returned.
Your os is undetermined
OS type
You can import OS
union type from @mantine/hooks
: