{"name":"@reach/popover","version":"0.7.0","description":"Render a portal positioned relative to another element.","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/popover"},"main":"index.js","module":"es/index.js","scripts":{"build":"node ../../shared/build-package"},"dependencies":{"@reach/portal":"^0.7.0","@reach/rect":"^0.7.0","@reach/utils":"^0.7.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":"c6c10662e6eaf229594e4d6e6a38d8c9baa35ffa","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.7.0","_nodeVersion":"13.5.0","_npmVersion":"lerna/3.19.0/node@v13.5.0+x64 (linux)","dist":{"integrity":"sha512-UQKrfVSi0asZa2XrT6CjTO/K3APMuh6snal72Zo+bowIpsDFGzr8BBI8YSO7FbGshybmLFXMmFVuf7UxUYrxiw==","shasum":"f99cc859d1e2c93319e6922c9477f9594e91cc4d","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.7.0.tgz","fileCount":6,"unpackedSize":30039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/vDvCRA9TVsSAnZWagAAqu4P/0OtV8cL06mRfmXDrww1\nrtcADWgvwi2DLkpQjcNxdEu0NYox9C3f00hXW3rOX+IS4Nv3pHoOrWT6BxFL\nbdFuFnezHVuP4DZnauJokOlb26C/kfHI/bDEyGv2T9igstUWAuQLQWw8xFTY\ncc+EXco5acVR5bzs5KsE7K9r4oJ/H0zAwIrym7gaOSO5+bshVSRnrYcwxBE1\n35zziLHb9kGSHlOuzahWeZJnIMgeyUWbIKAnK6ZRADe66Hb9aWpoL7Vl+t2J\nQcl6JzfUday+2HRaRU1wU2iTXCt4lNnsbJyPl6fZ/IkFZ6gTgFdjacCHPa7c\nWp4rt4creixY5mUUtZ1UjVxx/UqftYAH8fk54xY83ONtbg8mCZxgI5NHDPzH\ndKjJnwtFqLAMbKbZo3r6zK35ehVipi+vuVeJrxFswdMEuvt3qyn0ZpOJBvUE\nf4+JeOsl2KrVDdyUC8YbPe72xceHJtXZIEVy34wj2EzpjFz1A/nAXVAxKzYm\n0IBclFIIihpSd7OasEUIoK2Y3GqhznO2pqMTH4pTPHpRKCDcb8sjHKxzyPPU\nRIza9ZIwtQfvj8PmzbvzTTC1vTDJTT9mwbsmWY8PCIylvyUGrwF+QNbQGgzN\nTTXU/DbOvPPjHBfyU1NnS8RN2bNq6Wp/GO2X53FRWGxw5HriCzKsM97VOg+q\nUPG3\r\n=EkH1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLNPGwMLczMEWNRITWBMavReqymOEpDVyN52FOUzZymQIgCmZuPu9BnmIvl6UPlczFWNNlgJk8NL3xUL5QE6I+d1Y="}],"size":5177,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.7.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.7.0_1576988910785_0.33777768346150605"},"_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":1576988910891,"_cnpm_publish_time":1576988910891,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}