Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bozzhik/is-mobile

NPM package for detecting mobile devices in web applications.
https://github.com/bozzhik/is-mobile

bozzhik bozzhik-is-mobile ismobile npm npm-package

Last synced: 20 days ago
JSON representation

NPM package for detecting mobile devices in web applications.

Awesome Lists containing this project

README

        

# Overview

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

#### [Projects that already use this package →](https://github.com/topics/bozzhik-is-mobile)

## Installation

To install the `isMobile` variable, you can use npm:

```bash
npm install @bozzhik/is-mobile
```

## Example

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

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

function Component() {
return isMobile ? :
}
```