UNPKG

@heroui/use-is-mobile

Version:

A hook that returns whether the device is mobile or not

59 lines 1.34 kB
{ "name": "@heroui/use-is-mobile", "version": "2.2.11", "description": "A hook that returns whether the device is mobile or not", "keywords": [ "use-is-mobile" ], "author": "HeroUI <support@heroui.com>", "homepage": "https://heroui.com", "license": "MIT", "main": "dist/index.js", "sideEffects": false, "files": [ "dist" ], "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "git+https://github.com/heroui-inc/heroui.git", "directory": "packages/hooks/use-is-mobile" }, "bugs": { "url": "https://github.com/heroui-inc/heroui/issues" }, "dependencies": { "@react-aria/ssr": "3.9.9" }, "peerDependencies": { "react": ">=18 || >=19.0.0-rc.0" }, "clean-package": "../../../clean-package.config.json", "tsup": { "clean": true, "target": "es2019", "format": [ "cjs", "esm" ] }, "module": "dist/index.mjs", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" }, "./package.json": "./package.json" }, "scripts": { "build": "tsup src --dts", "build:fast": "tsup src", "dev": "pnpm build:fast --watch", "clean": "rimraf dist .turbo", "typecheck": "tsc --noEmit" } }