@trashpanda001/helpers
    Preparing search index...

    Function useIsPortrait

    • Determine if current device is in portrait orientation.

      Returns boolean

      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>
      }