{"name":"@reach/window-size","version":"0.7.1","description":"Measure the window size in React","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/window-size"},"main":"dist/index.js","umd:main":"dist/window-size.umd.production.js","module":"dist/window-size.esm.js","typings":"dist/index.d.ts","scripts":{"build":"cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd"},"dependencies":{"prop-types":"^15.7.2"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","_id":"@reach/window-size@0.7.1","dist":{"shasum":"c38393181f90c03016c27b81069472c2f6fcf58d","integrity":"sha512-eP1qibC2gjBZnKTDy1ViUsZ/2cVhY1jUdApZwwhrmzzbb/jseahQf8Xr34ONDdRq3Ochs6WbN6KsEyxShSYccA==","tarball":"http://registry-npm.ywwl.com/@reach/window-size/download/@reach/window-size-0.7.1.tgz","fileCount":17,"unpackedSize":24531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFoPjCRA9TVsSAnZWagAAMmQP/Rbj6gTadimSUBgvys04\n1X9iZ41FZ3k4UdK0e/WMMsXtGvtdG7ySw7Vkzai/fqzAlRzxvk4Tbjr7fy3r\nUqtqI7O7Cq/Sxbrc9fmOACCmKNIgWozbUNeBmN4vhsebIJjCSkg7yUslq+ak\nCPmPy4p1F5LCUnIWwQAxrVZ/pKrTsITRNjulRyM8qXAvJnnSYlif8zW4t89a\nFyXwx/ixqUoKvruvomH4S2ET2CONp4tBDu2ESUnvpzpp4W/gfvSOkk3/JwNa\nFeACterAsMBlxexbegYH+dp23AsTkyJO+SmlkiFyoxky0/OLx+fzRU8B9Dlo\njvDmwp+t7YN07c2TQzGB2wP788r4N2HqW1gxgeRX31Ik9GHIXHwrF0grbsZR\nMNKB3zH5h7ftsTmtECO69bHU8I8d2RV9hByHe+bg6wn83y2gmEmsfjLf7fWu\nPMILmnHwBuejIJ5g1jMIIjSZ9GFoODvCERtl4Nud8LLWiW6EDKJcPPItO/X3\naGoqOPQ/p2WvQgB8o09EodHfp6qv4HPXAhhqaKwqzwSKvUzgT2op4t1tfnWD\n57TRJSQf31pEfGTv8FluLjqJtmM64Gqtlpj51Q0twLCgfe8Y2nKWq4TrkBE1\nNdL9YJe5pO1IwaieYKMN4c6RSYBQ5i2hET5m6gMP/e7LjkFx2Z3A9yIiJj8A\nUYFJ\r\n=YYUA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGsgnCn3C5qnc6eP/3qPeddpIr3Knkob9fylSAtOi1zAiEApnvtogI94nGW6w5kXLnt8Lgp8zCWW/5E6/PUG34uokI="}],"size":4044,"noattachment":false,"key":"/@reach/window-size/-/@reach/window-size-0.7.1.tgz"},"maintainers":[{"email":"chance.strickland@gmail.com","name":"chancestrickland"},{"email":"npm@mjackson.me","name":"mjackson"},{"email":"rpflorence@gmail.com","name":"ryanflorence"}],"_npmUser":{"name":"chancestrickland","email":"chance.strickland@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/window-size_0.7.1_1578533858688_0.8702055830579161"},"_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":1578533858797,"_cnpm_publish_time":1578533858797,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}