@trashpanda001/helpers
    Preparing search index...

    Function useIsLandscape

    • Determine if current device is in landscape orientation.

      Returns boolean

      true if landscape, false if portrait

      Check if the device is in landscape mode.

      import { useIsLandscape } from "@trashpanda001/helpers/react"

      function Component() {
      const isLandscape = useIsLandscape()
      return <div>{isLandscape ? "landscape" : "portrait"}</div>
      }