{"name":"@reach/popover","version":"0.13.1","description":"Render a portal positioned relative to another element.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/popover"},"dependencies":{"@reach/portal":"0.13.1","@reach/rect":"0.13.1","@reach/utils":"0.13.1","tabbable":"^4.0.0","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-popover.cjs.js","module":"dist/reach-popover.esm.js","types":"dist/reach-popover.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/popover@0.13.1","_nodeVersion":"15.9.0","_npmVersion":"lerna/3.22.1/node@v15.9.0+x64 (linux)","dist":{"integrity":"sha512-KJ5lc3mxy5mpVBI3YKeV5XRlq1gOaiPMC6WKvf1rHRj9AelM7KfHYB2u4ELPj2CmlUXRhJXFamXaeckkHWydsw==","shasum":"c610ffa55830fbe3ded5189fb9f9e6799c7191a6","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.13.1.tgz","fileCount":9,"unpackedSize":38477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMq6ZCRA9TVsSAnZWagAAJUsQAJBFHjnd15KSXr4KHCyi\n4pzDuf75rWW8LJlNGIC5EwdzQzSBlVtnB7DTQJDD2IGcySPUd4SH8EnuCWML\nvHPFn1gY+o0sgfJNpoBvV3un7XOzh02bQ5mSwyei2U5nWlRcy7fKPFHdY3bF\nHjaBzGY7T2T1xCHNd4Mr1YMVd59VwtrPf2mLOz2jXf80qEw+VHnmSonQfiDP\n29jNBT1KxDVdiIv/Rqg1cZTxGqiCQdhbv97RHkHWVwiIVZDtMQJz5hHYy1R7\nBQZPMg+gBlh9JV1tNISIi6HmbUcpzes8lExUQOJjutuO6Xsz9zYNzi+zltNy\ndPtK/8830mMr67DXzmKLn9t4wFiIse7CHcUyB1FWnlUpX+qPyft/GoLkzrs1\n79xbHbXTi4ijk4ZM00KD2juGEE9EQeQy5b1f5+T06G+tHU7tQyJDUoFBr7vU\ndSKOW8qJNyL2vL0kKrubtqYX7+2Z+GN6+S5MqnWbvVbRcc2Nq5OB2CunoBv8\nEGqhuHS8tdTF0YQliY6OVYtg4M33fptEHTR+/L9fIUrd3OG65Czt4hnywk0F\niDCy9AdybGlVJXnSTNqRTsBKJnLE3kfGlq0fL9hYUeK4arI4QIHZ5AlrZVwy\ngVBgGnL0Ka0WBWtMKS0FRbTp1XilLhx/mCk3nuOsp2NsLaJTWQT5TnK2GwCp\nOkPt\r\n=qq9Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYAzB3v56eslnBiLMwi2+RwU5PMX3e8nkvWICApYFQbAiEA6sJ+WomNSOytRUKu+7961UdpTTjYNzy21VTzXeIZJII="}],"size":5808,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-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/popover_0.13.1_1613934232996_0.173531905060073"},"_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":1613934233134,"_cnpm_publish_time":1613934233134,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}