{"name":"@reach/popover","version":"0.6.4","description":"Render a portal positioned relative to another element.","main":"index.js","module":"es/index.js","scripts":{"build":"node ../../shared/build-package"},"dependencies":{"@reach/portal":"^0.6.2","@reach/rect":"^0.6.2","@reach/utils":"^0.6.4","tabbable":"^4.0.0"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","gitHead":"c20cdf7f2dd6b9eabe5461138daf320e2833aa41","_id":"@reach/popover@0.6.4","_nodeVersion":"13.3.0","_npmVersion":"lerna/3.19.0/node@v13.3.0+x64 (linux)","dist":{"integrity":"sha512-wQAIp6eprJQ2zuc9NcdfxVdVVuy1aS9ai6VwOumQkoem78BTjcIPe8sPIU/s3hKJu5ugIcDtbBqakMmyfxcOMQ==","shasum":"f123ed0d822f8c450c912d12c65f53a0b670a7d4","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.6.4.tgz","fileCount":6,"unpackedSize":29905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7/CcCRA9TVsSAnZWagAAIAgP/i1J7YnmAVNxnrcHPrGo\nTBMXaeNb2D4v/GZ0Oso2b+1afmtLenPfoPY8+x2FryVp+ulhzEa32Wziza6U\njIPHUrLh6zgut53Z9q7HsJW9UVE/+EJgk+Y29JgTGsw6qlHMRGJJrEloK6Zc\nhy2jykCjMrtn7peGb8TpM/mM0l6N6VbjRQQWnoJXafqqoXqaaC+f9ikbNDXi\nkifD9433HX94S9L5D/6k5RgtmGeqxHKqQCGOs2aHfndwpEh9Chp6HWSxzFpO\nTI0yVchtJjLOrs3QkZSvIFa44n6SxhonusvLY5fxgWhjvRAhbBe7p9j/6hq4\nRNLqrh3XSOa2ryQ/6DVK1CazUzm375c7do36gGJ0Ai2pzyvceKSIihn/L4te\nsDfh2q8vRjOvv0RIy1/nShsvN4RHOayPWOrusW07pUm6cV83V/zsPcUVideI\nlL3nNTdiv3IeM/OkTl4J6XVAZAiOcG3K4XOmTR3rhoYyJWfKSsr2l2oebgjt\nuJvyYUJOAWj00fnbQzTjHQn6EqCQmmgWJ59Zm9TV0llUXrlY3bKa/WbWsklC\nGCF8fedyVqVRsT3GOlL3AGT8LMz0/BUyDuOymWRrmZES3UQ23U9Jg803mIGS\nUkTImsoPV85/vTz7ahkGzhCHRZvGxGRhZ6yciQC0TFnt6deMH+P4E8PX9ofE\n9a7P\r\n=oaD9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDWa0Hsew4s+yUdxl5G6dM7iirR9ZGLSha2qsnB9yqwvAiEArSz5ScLdC2jADz4/pqr60JxZpsmfeyhVGJXm7DZqCFQ="}],"size":5126,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.6.4.tgz"},"maintainers":[{"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/popover_0.6.4_1576005788206_0.5203212906576657"},"_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":1576005788365,"_cnpm_publish_time":1576005788365,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}