{"name":"@reach/window-size","version":"0.15.3","description":"Measure the window size in React","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","sideEffects":["*.css"],"repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/window-size"},"dependencies":{"@reach/utils":"0.15.3","prop-types":"^15.7.2","tslib":"^2.3.0"},"devDependencies":{"react":"^17.0.2","react-dom":"^17.0.2"},"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":"aac3d3e1902ec32656476bcdccd7b56207384fcd","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/window-size@0.15.3","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-13UzeLdoOXo1TTtSaEoGEhaqhFdE0DfoaykrUs7manGVoQdJcskXroGOCtL92vIB2ozORo/pSZGwqTwsB9uPgg==","shasum":"9235a4c0380b6e012dbe1367ca5bb60ff9813d8f","tarball":"http://registry-npm.ywwl.com/@reach/window-size/download/@reach/window-size-0.15.3.tgz","fileCount":9,"unpackedSize":9728,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6gRSCRA9TVsSAnZWagAA0K4P/i3b+E7k3Q90i2u2xV+q\nk6otcfARsAVP0Gb+T128odGhQUfQqkLt4zOb90Bby55NevV3T0bkn/Y22E6P\noFvvJ1+IsQFHebo2t3AOwN0Wx842ftAgFbntzDYQcg5qoLbKLtEc3tSAY7tq\n6fYF8cpLs5tN5NHf+BNKwZDNGwuDYGCPuYJbFy+G9fNGSttO6DWDEVOgt0Gl\n64wc8+Brp2vP9qNDYReNeYYcO7HSZrFshxR/ttJRGGrPUOtABNyBHA2FTIBG\nJ1G6uRUlkohFg85q8If7knpX5K7Zzv+Kh+aw293M9X9L0tc8soUhO23eI/bc\n2duXGrgCEwWkofOZtg0BH2mMSqdUDdsDjNNlxZSclXgf0opM6NQ48L+W1gDv\nisU6SPQQZx7QDmVrhYuwyuvGh2PSI40N/KLgniylmnvMYUegDA+yPt0mXzek\nfccfh43QcwluZ3wFxcpk0TjBSLTe8WZEOrMJ8Z2YHNd6IAjjigjxX61YbvM4\n3KX56R7+hhqai+ukvkBEvnHB+JY+6iuveY2owzcr7UWckOmjp0LCAs2LQsLZ\nvN9kRKerguKdyZ0zWGc04h+2fXhtTm/7wP3GX6dq6c6EceF2QApz0fXFT7sQ\nN5WynyBNgPGFQLRK7pphDinHjqo5IJMASmKtobvxrNp7HMimgV2gQC/WzWWR\nJghw\r\n=59rV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF66k0FuOJdboWqcaneF/DaHlIaptlGZNcXiSZzNpWowIhAIPEkEkDOd9yAeXORqa+6g/+LdYDg++3PnTL+5GIjhuw"}],"size":2835,"noattachment":false,"key":"/@reach/window-size/-/@reach/window-size-0.15.3.tgz"},"_npmUser":{"name":"chancestrickland","email":"chance.strickland@gmail.com"},"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.15.3_1625949266076_0.30662674984849736"},"_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":1625949266287,"_cnpm_publish_time":1625949266287,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}