@knitui/hooks
useOs
Detect the operating system from the user agent (web) — port of Mantine's useOs. Resolves after mount to stay SSR-safe (undetermined first render). The use-os.native sibling reads React Native's Platform.OS.
WebiOSAndroidnative splitshared core
Import
import { useOs } from "@knitui/hooks";Signature
export function useOs(): OS