{"name":"@reach/popover","version":"0.4.0","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.4.0","@reach/rect":"^0.4.0","@reach/utils":"^0.4.0","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":"0f3d2c7e530cd80e1d1bd338182ac89a3ba23999","_id":"@reach/popover@0.4.0","_nodeVersion":"13.0.1","_npmVersion":"lerna/3.17.0/node@v13.0.1+x64 (linux)","dist":{"integrity":"sha512-up9uzuyRnSpb80iHt5vWrMYfwUSEZsAiVokF6D6e9CiS7FBimKiU6O22aBjIeyda1Lxy0oyrWKjb1p/roS2iPQ==","shasum":"e648a6f4bb43a1f0791a96b274b911bac6c76f22","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.4.0.tgz","fileCount":6,"unpackedSize":30283,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsKovCRA9TVsSAnZWagAAwkEP/jkyn9o7dpl9N74FEESa\n6ho/rkLCUid8GMabG5dk1KgKE8S+tmZ3FF4K0frJ8P5yxktFWnl9eR1kLTBc\n9UzHvC2gz993SMufAfJs9EKHQEQJldrt8wZuIDG6BS19jxHPs1kIddlJHto0\nEoVMFeRws/Szzv2U4I3x1IV0j61CFkCKN7oSWyipRYCy/c2CeezASa+Mah65\nm4xcsiJSsHmr9xjiycEU56XGlbTbEqOCircxcbxmNQVPRrYctgnYEcw+WuYW\n6NT/zVrOOnl4ZnPFxgsQGPm1YwcQdCzfLzqkzdsFubPRTlAE1IZJBJizJdQY\nOC4MbuZcZ5OaqUO/HEUM+ZwEHvStljCMjI2ZRIQuXvrlEYYfymFAOfKY/QbX\nRviwX43ooWFOeycHFPumRME1hRaGjnSwVXtgEC7TmfdT/X/QliOGeZpsftWA\nRrsnUYu/qV+1RJvLioaS3zF97SuFxnAVfOc7mxVtMRNg1uifkLxbvZBMd/R3\nZckdMv3lREC4EApJ1N8lZgXbky9s2ftx9Ru1GwL6QJIpRlO3jU2FhI/Zh0MC\nvGJ3k/0/qAk1M83orluwKojBmizYJOeizktI9Prlj4nRbj7Fl/B59gQOkfKW\naOHLn5+2l40jfgkWtC8nQvYmtHWkEbNqTGiPlzCwuxfj6SxaD12GxjQNlCAA\nSlmT\r\n=2mlp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlDNJeKXHWuXlKCK8nxme3GjTRa5p0pLqEcN8bumuPCAiEA+MtFHqxJaj+LRVkeS4QTGaw9GMpeAyXb2R+b+r7v6WQ="}],"size":5234,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.4.0.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.4.0_1571858991440_0.8333440241839398"},"_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":1571858991567,"_cnpm_publish_time":1571858991567,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}