Determine if current device is in portrait orientation.
true if portrait, false if landscape
Check if the device is in portrait mode.
import { useIsPortait } from "@trashpanda001/helpers/react"function Component() { const isPortrait = useIsPortrait() return <div>{isPortrait ? "portrait" : "landscape"}</div>} Copy
import { useIsPortait } from "@trashpanda001/helpers/react"function Component() { const isPortrait = useIsPortrait() return <div>{isPortrait ? "portrait" : "landscape"}</div>}
Determine if current device is in portrait orientation.