--- title: useOS description: "`useOS` is a custom hook that returns the user's OS." links: - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/hooks/use-os - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/hooks-useos--basic --- ```tsx const os = useOS() return Your os is "{os}" ``` ## Usage ```tsx import { useOS } from "@yamada-ui/react" ``` ```tsx import { useOS } from "@/components/ui" ``` ```tsx import { useOS } from "@workspaces/ui" ``` ```tsx const os = useOS() ```