{"name":"@reach/popover","version":"0.12.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"},"scripts":{"build":"ts-node --transpile-only ../../scripts/build-package $npm_package_name"},"dependencies":{"@reach/portal":"0.12.1","@reach/rect":"0.12.1","@reach/utils":"0.12.1","tabbable":"^4.0.0","tslib":"^2.0.0"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"main":"dist/index.js","module":"dist/popover.esm.js","typings":"dist/index.d.ts","gitHead":"97b32791ce33f822f6bc9f07f6cebfb343d8032d","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.12.1","_nodeVersion":"15.3.0","_npmVersion":"lerna/3.22.1/node@v15.3.0+x64 (linux)","dist":{"integrity":"sha512-gpwd7mQK51xzDLtf+qCHsxQxeMokKNTssgoK2MIJVkPpMDrSK+rskcZswpWjHSGx9EQ27bxZb/3A0GjkN1rPLg==","shasum":"d35dbff5d7751600ac9a2a0703e8585b8820964d","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.12.1.tgz","fileCount":11,"unpackedSize":88710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfwUD5CRA9TVsSAnZWagAAvLYP+wakwV8Hx7DRrUjmVea1\nLbICVYUCEJni9VELUGDCFzGxR1fXjryRwlDSNodM1prKKWyImgimlqJ2VY24\nKAmXBAyyxyBcX55fTqdjHkXZh0u0LiBzzOgQiMnYOz3QYzPzL1CV/cAsxtPc\nIlhw1D4+rwzHtEd+zlfQg7oH5EEPHBlBDZG9EmURBHBd4bhPXbkkqNhyVR83\nBr0VOSJn3nn2U9iRcn8kYUlHxp7iHFwp/CMs6VfG2EyOB8g/yxoyc3cBP4Pj\nW1RUjIj+zbELfuwDCGUWxdeOWtR6JSC2ycp/6D8KyoS7jSSmt4WP+qPGLEkH\nv3hSJecYjb+YtnAqo/ocTbcc1yUMaFcyVC8mS7yNB0jrdXZNEDnOTYhv7Rij\nZcFWvM/j6mBaKOdwIp7tbRD8dF6twwnLbm65kCaVGaetwFjl2zEs21labrPa\nPemfqMB2DUFPkkb8LP55fZEcrkot+ypuVpTkavFBfWWT89AoeVeOIlaNQS+o\nWtV3JNaIzRzKV0YJvLFPVZtGfB/BRIrjOWMQLtF2pXdhREnq1/getUEXqZkm\ntecYiKrRQ8Jxn5sZNkOebGxnjl8PNLTZHbwKV31dzRFSMxxvnHl+9afpicPf\nj5nkMU+eo67dhSfOkP+9lo1SysTu+T6qSuEH2MKH1HcUnThRPDig4Y0yKHfc\n1zet\r\n=5yTJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgAJPz0miw2eQSrdlPEytkRKoneqhDqZ1a9JgUeaW9QgIgC8Phq+rvTwPOK2w+gz9TD7cMgHaiyyCZskxVSPsqYkw="}],"size":16332,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.12.1.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"maintainers":[{"name":"blainekasten","email":"blainekasten@gmail.com"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/popover_0.12.1_1606500601043_0.9885505915478712"},"_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":1606500601177,"_cnpm_publish_time":1606500601177,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}