8000 GitHub - bozzhik/is-mobile: NPM package for detecting mobile devices in web applications.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bozzhik/is-mobile

Repository files navigation

Overview

The @bozzhik/is-mobile variable is a utility designed to determine whether the current device is considered mobile, based on browser identification.

Installation

To install the isMobile variable, you can use npm:

npm install @bozzhik/is-mobile

Example

In this case, the desired component will be drawn based on the device:

import {isMobile} from '@bozzhik/is-mobile'

function Component() {
  return isMobile ? <Mobile /> : <Desktop />
}

About

NPM package for detecting mobile devices in web applications.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  
0