{"name":"@reach/window-size","version":"0.13.1","description":"Measure the window size in React","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/window-size"},"dependencies":{"@reach/utils":"0.13.1","prop-types":"^15.7.2","tslib":"^2.0.0"},"devDependencies":{"react":"^17.0.1","react-dom":"^17.0.1"},"peerDependencies":{"react":"^16.8.0 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"dist/reach-window-size.cjs.js","module":"dist/reach-window-size.esm.js","types":"dist/reach-window-size.cjs.d.ts","eslintIgnore":["node_modules","dist"],"gitHead":"24995121ef36d6d1768bb3bdef6e3353d905a167","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/window-size@0.13.1","_nodeVersion":"15.9.0","_npmVersion":"lerna/3.22.1/node@v15.9.0+x64 (linux)","dist":{"integrity":"sha512-Y2UBRGtsAO6QjA/4KefuI0B/AgrKV827cuXqbKdgn8mGI/Av/1gjUjIBlS9q1tE++QaMhWZMjmKPPfNHF10eAg==","shasum":"9a654146f6c125f8927a931e78d8b146925d5bec","tarball":"http://registry-npm.ywwl.com/@reach/window-size/download/@reach/window-size-0.13.1.tgz","fileCount":9,"unpackedSize":9368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMq6KCRA9TVsSAnZWagAADNIQAIvraGSQ1pzMQhQIY2WY\nmSXdDsfdVcyjwgmIsNwK7o1Fzs4XhLzyQCptOv7MtAJuHdWvlBDwtGounC7L\nrIGTUfZtH7jc8O31EaXIhQIT+G/NIfAV58i18JAh8qcixlsKWeTCzNzeIE19\nGMuyVV0BHZPAKG+8t6De6lnP3XPAA7SQ2Re6bwLavdwMoXrTY1pHsJkYaM/u\n32STvmP4Wm2a7YOVNESKUuf2Uj7ULfqFTmh9xEMI35pIZARjfNGTd+dMre/I\nIiXPtwXYOyJNMAWbqmbk08+Ehd3a3Klxe7FUKnnPmm6dAT7UH6EiXxOXbZJj\nTOx0meNMroHdEOg0LNk5UdCzqzWPT5lUmkPrsky/+IUc050ZfRJbwPcFxLSo\nuBqznxhokrVwvfKjdR2QdPUzshB2ta3c5IWYw8YmtxjTi9OqYBSOVyulbyzm\nQ+YJtKVhypwNpBe9m4U8PXIC7PoudnU/skwf+p/v2OH/5Tyv4OOkOyi69lku\nrpioFDkVMQ0DNHTvMZKiI+PpcI5Qu5dGyKlvZSdeiraf4UdttUzmqybg9SyX\nkCTyEVRZqkbRsxSRHzGmJjcTGc9xchNOBxKXyDA3TrSTs5/Kn9xuLJCvsKDQ\nbXdE5C/MzUlkni966LHqR9ICVPW6ZqeuI2uhSL5wbexgQ719uFYX4e9jPTeB\nKlhg\r\n=PuMr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEKgLIdQsIjlk/kZ+TGipcKSzP58+YcyryVaWE26CUdAiEA8s4HY2x81oZDii9Bco6GQ6pM8nG47UPiQrjPLWtI+rw="}],"size":2778,"noattachment":false,"key":"/@reach/window-size/-/@reach/window-size-0.13.1.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"blainekasten","email":"blainekasten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/window-size_0.13.1_1613934218134_0.22985342974818712"},"_hasShrinkwrap":false,"readme":"# @reach/window-size\n\n[![Stable release](https://img.shields.io/npm/v/@reach/window-size.svg)](https://npm.im/@reach/window-size) ![MIT license](https://badgen.now.sh/badge/license/MIT)\n\n[Docs](https://reach.tech/window-size) | [Source](https://github.com/reach/reach-ui/tree/main/packages/window-size)\n\nMeasure the current window dimensions.\n\n```jsx\nimport WindowSize, { useWindowSize } from \"@reach/window-size\";\n\nfunction Example() {\n\tconst { width, height } = useWindowSize();\n\treturn (\n\t\t<div>\n\t\t\t<p>\n\t\t\t\tLooks like a pretty{\" \"}\n\t\t\t\t{width <= 400 ? \"small\" : width >= 1000 ? \"large\" : \"normal\"} screen!\n\t\t\t</p>\n\t\t</div>\n\t);\n}\n```\n","publish_time":1613934218235,"_cnpm_publish_time":1613934218235,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}