{"name":"@reach/popover","version":"0.6.2","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.1","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":"00e73c5da6d25f50194612f74de71156fde2a80a","_id":"@reach/popover@0.6.2","_nodeVersion":"13.2.0","_npmVersion":"lerna/3.18.4/node@v13.2.0+x64 (linux)","dist":{"integrity":"sha512-v+uChUS1cvqOf7YoGm6w3WWHj8u9KLt7DEouETua3pHlS1mLDGasK+ENoiSMBnuz174j2JUSFIXdHSVEy6c54g==","shasum":"902091466ec9273412f6676788d85b22f481cfb0","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.6.2.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\nwsFcBAEBCAAQBQJd2I9SCRA9TVsSAnZWagAAdrEP+gIeaEEtQ8xlT0pnm8lu\nRijxTtJfX1WYvPSRPjk/KFLUHcHzF+HSwxL8R9AXmydYIGajCZZaOBt7DE4Y\nWOj10fp57WuC84o+ZKt+OMZ+KMmJDqkH4q1K2g62dhSyt7E4c9zS4DdJStcZ\n0u16/6yENUqt+NuqPmYTTSLTgocqbXt5wRmLuzutvxxqBqoRI6vzGFkGqk8+\nn80GKt0vuCoslXjOozvvMPaArKNsAAVrBKfX9Dpn043+KQCCBBobOP/zgu9x\nD/pavc/Ev74Cei7+SknOWD0IjoF+7R1sI+69DE4KF6L9f3aZXFhyXgC5OEx1\n2VQX38RZ94HcelobQ1fV36S3eXnBf0jbSAqCetIC8AGa8onotWEDV/Yd8o+/\nwa6s/1S6o/VXp3yoHocksbSzrmKfkCb74UZ36u2KxFGcAokMRcv0jvuyfX4Z\n5lQ5qoMGZqSrMD7ssi/vHNVOnIjC0oUGH0fHRKS4WQ+JYThi/n+tNcV3tSyS\nNdOdlGpDbhqdIrVhclhOP6LVSNKvCL3mDSSMO4ZfQV1vpdEVoCA712wE2bVb\n+w6rqXXgb1sr8wTKy3n8mV7jYrZDoCIl5cCoAOa1HfWbuSI7qQEOfKI0V6kb\nutkQe0Inc0m0RmFycK6wdDyReb2ndNswVQKRnPrn6ct1qD3Hui9LbDc9osaw\nGfEI\r\n=R7Jw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGIgnBzI0hqoFigd9bHaDx6B/DDJ5SZ/omJ4j3ZZXDfAiBzdvxIXRBSPFnUkwjDxY38a15yoKIsbJ2DM2wxzlOpBw=="}],"size":5122,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.6.2.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.2_1574473554352_0.21978855925216867"},"_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":1574473554450,"_cnpm_publish_time":1574473554450,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}