{"name":"@reach/popover","version":"0.15.0","description":"Render a portal positioned relative to another element.","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/popover"},"dependencies":{"@reach/portal":"0.15.0","@reach/rect":"0.15.0","@reach/utils":"0.15.0","tabbable":"^4.0.0","tslib":"^2.1.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-popover.cjs.js","module":"dist/reach-popover.esm.js","types":"dist/reach-popover.cjs.d.ts","eslintIgnore":["node_modules","dist"],"gitHead":"1449650359c119c1afe25973aa7584e09e2c88bc","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.15.0","_nodeVersion":"15.14.0","_npmVersion":"lerna/3.22.1/node@v15.14.0+x64 (linux)","dist":{"integrity":"sha512-nBR6ZlULF7ZZIqkN47QEWmdqUX2Zd6FSeYJku1il9OkiMnWzI3aTOyu1B+IJfYeIqg28D/aeF4ff0oVu1VUrqQ==","shasum":"541de5c970509fbedbecd981759fa1ab926774fd","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.15.0.tgz","fileCount":9,"unpackedSize":39508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbUSKCRA9TVsSAnZWagAAr0QQAKBiuTsI/U7MPHTsiC9/\nGfuo9UFmsDa7ApBF/hHXaC4pAZJMHGozWUvpwq6uSBnGnEht0rIM3+qnK7i5\n9vOPt12i+bw7wZzbrXX1ipvYFjPlpmchLQye/7LaAeorjpSue14NIAg1Ig3w\nUoK4+kxphr/hGcDfjHOJSU4Ch0BpSqWQ5FIZZA3JqCGqB21coivR2ljZBsvy\nHBSWjG0PhQA1DrpP4pO96BsL1CvitXAbuyelQK++7eL1wpD75qwQLTwzk2xb\nKpWMsswB4qFvY3W6bS3+LyEOR0wi/IOHTZ1qhfP5mp/lc4+oMmiV/YZhvCVJ\nAG6qOer4VCrJye70FI0wi8AUi/15EcYCKyr2FxUeP8Cqbdi64LxZAXGa8xrS\nsM6UyxWRwKYxS0+gbbiCAYp5VE1eVusTMf76Q6S6oMH3Qeee8zW9MzVYD1Wk\njZ5Po0CJKNW6jQLb8k38ezEm7dMgt8OEv2cnVlbRqlaetC+27WT4POLBwHA6\n8Qj7EzuvaAhqY0g/bDZSTwUAOd1CPZGixZoo1hsivUlv9tbrY+HuYZUJI0pm\ncGNMEhf6yxU2ho1Xr37vxbbxzxDz3W6vhMoIm6KSt2OsfS5RGh+uELskYqHg\n5Ae9qxW8LfJe+Q1Wd9U0Fd0gZYFR6GA50GewdqWRBJ6FepYEYgAEO5II+qFu\n+GIf\r\n=HNqk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDGpz6E0AJc+Zi0unpcMHWoHPFn7Gm5s+5+K+sD9KNFHAiBw2u+6R/CG7Ql0TXnp6pcnFBZkAB5IEM5j5NyBCmnrMQ=="}],"size":5912,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.15.0.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/popover_0.15.0_1617773705808_0.2229485482001865"},"_hasShrinkwrap":false,"readme":"# @reach/popover\n\n[![Stable release](https://img.shields.io/npm/v/@reach/popover.svg)](https://npm.im/@reach/popover) ![MIT license](https://badgen.now.sh/badge/license/MIT)\n\n```jsx\nimport * as React from \"react\";\nimport { Popover, positionDefault } from \"@reach/popover\";\n\nfunction Example() {\n\tconst ref = React.useRef(null);\n\tconst [value, setValue] = React.useState(\"\");\n\treturn (\n\t\t<div>\n\t\t\t<label>\n\t\t\t\t<span>Type for a special message</span>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tref={ref}\n\t\t\t\t\tonChange={(event) => setValue(event.target.value)}\n\t\t\t\t/>\n\t\t\t</label>\n\n\t\t\t{value.length > 0 && (\n\t\t\t\t<Popover targetRef={ref} position={positionDefault}>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<p>Whoa! Look at me!</p>\n\t\t\t\t\t</div>\n\t\t\t\t</Popover>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n```\n","publish_time":1617773705970,"_cnpm_publish_time":1617773705970,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}