{"name":"@reach/window-size","version":"0.11.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"},"scripts":{"build":"ts-node --transpile-only ../../scripts/build-package $npm_package_name"},"dependencies":{"@reach/utils":"0.11.1","prop-types":"^15.7.2","tslib":"^2.0.0"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"main":"dist/index.js","module":"dist/window-size.esm.js","typings":"dist/index.d.ts","gitHead":"5c6de02db35c1bb69e28d52bf345ea5c5c484013","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/window-size@0.11.1","_nodeVersion":"14.9.0","_npmVersion":"lerna/3.22.1/node@v14.9.0+x64 (linux)","dist":{"integrity":"sha512-a6TbIKrf+/3jIvGg0n1yA/8tYTX2ytU8aePIj1swrS5kfi4etwhqDXBeVpGhjPGxuCS6/IcI6SKAuUPK2p2htQ==","shasum":"afe674264b076136124c7bc4404a4825ddd08b17","tarball":"http://registry-npm.ywwl.com/@reach/window-size/download/@reach/window-size-0.11.1.tgz","fileCount":11,"unpackedSize":17485,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTdZDCRA9TVsSAnZWagAAcqYP/Rh5Q4DIHqwfiufEmHlS\nohYuNcxAMD7wQVpnkKHt3UdmYmVySjkD+rV96qZ5OCDeFZ45srBfvoP90SRH\nouFy3yeImeIyOWj0qghWW7fRM7/uAznhhl77279F+AKFhqNcr+41PIiEJIxK\ng7STx/dvTXStV7mLbShE0+m7s2WobXLSGO6YqOPKlotIelLyATDNFCatR0D8\nfIhRVydnYjpL5YvdokAf/FaKVpYzU7odWEEW3UmFkDvnbhZf/2rAvhpCn9D8\nG8XiUIo2/PZj6uW+z3oN5NR3RJAR/KTr9f+ikvTRa5TqnJbLmlswi4ziL2ps\nTQLWd2T1rO7wsXwBRIFGedufyEeMVUqOwll7NktRl3dToEhRGhRzlZCuw3Ka\nWAlk/xxNHgAE4DnmrS3E4lSDVHWPIp37GygH12GuIle2fZ16pjEhpaMROT1g\ne8kGFU+PRjrLcmiPYUW3X5Cpx316zAoTJ6FmjudUzL2F/VbVsWfbn7IcP/Ga\n4dPatJxvoFrUxk9wGJYFqob0PqSXtYK57l2Y+5gZvgemFCPSvLdEljKDeW9t\ndEtSfweLnvi0oKXwkOTn0vLf4yL6seR++qLDyqlDi7fNsgntkwZGJHwge+xX\nLSjqndYZr+Stc8n5o2gPBuDxd1k0TV4qHp9IOkOJAIm9O9+tXtpd0egbMyaa\nUFo9\r\n=cVf8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpe590mhuhAXceyA+paT1gQ4JIIMzl2Y4U15wUnZT5WQIhAL2i6tWZOV+8K16sIpzzm0pWr/MdhvQx0a14HH0GWuNH"}],"size":4193,"noattachment":false,"key":"/@reach/window-size/-/@reach/window-size-0.11.1.tgz"},"maintainers":[{"email":"blainekasten@gmail.com","name":"blainekasten"},{"email":"chance.strickland@gmail.com","name":"chancestrickland"},{"email":"npm@mjackson.me","name":"mjackson"},{"email":"rpflorence@gmail.com","name":"ryanflorence"}],"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/window-size_0.11.1_1598936643344_0.19229121878656996"},"_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":1598936643463,"_cnpm_publish_time":1598936643463,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}