Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

useOS

useOS is a custom hook that returns the user's OS.

Source@yamada-ui/use-os

Import

import { useOS } from "@yamada-ui/react"
Copied!

Usage

Editable example

const os = useOS()

return <Text>Your os is "{os}"</Text>
Copied!

Edit this page on GitHub

PrevioususeNoticeNextuseOutsideClick