0.1.1 • Published 1 month ago

@bozzhik/is-mobile v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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

1 month ago

1.1.0

1 month ago

1.0.0

1 month ago

0.1.0

1 month ago