{"name":"@reach/popover","version":"0.10.4","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 ../../scripts/build"},"dependencies":{"@reach/portal":"0.10.4","@reach/rect":"0.10.4","@reach/utils":"0.10.4","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":"a0c7b3672835b2a9f84732663bb0e78992541211","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.10.4","_nodeVersion":"14.4.0","_npmVersion":"lerna/3.22.1/node@v14.4.0+x64 (linux)","dist":{"integrity":"sha512-TCfjPzFX8rJONaXqcYIhdwIoGZBxOMTDfZ9YeENqQ6Fad29SWzPIiWCCcEoJkohejp6Y4y0D9Oi0j6E7j/a7YQ==","shasum":"3171594446dd096ed5d3e4d9b0612b8280e8f447","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.10.4.tgz","fileCount":11,"unpackedSize":87542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe565VCRA9TVsSAnZWagAAjD4P/2mt0A/Ibbb2Mn/0hBa2\n9p2LpIBeBlhsh7i7CBpbL/OqjnltQ+h2MObh5rD7KykcFtSG+AfzoG0Ictzx\nefnQ/CrO4NU/lhotrj1r+YEssMYLPu+FxXAf052JH9+rmQoYCQv10SdlGYX8\n3MXtdR8hhWWTFdshdDzYNEwizYugZpfiDqtVUesC7SJ9enew7Ls7YNKHzAWt\nma+eF9iwy/XqD7rDfNoo9G6RVm6M1cNE0iGYtzLXNkXWMA5c5IJpvb5RVeik\nwpBLQFIHa6buHG0vYP9U6KBeEZRLyiM2Ka6SmfYlKkKIt0kKK4UcExJ9JEGf\n5PdV9rpspmyQAKggRhxsgZMulrg70AeRVYtOQ31Bx7a0uqDygW/me9CQ45WF\nkXvnM2DqUsX1qUWj1CTAoZL3+zZz2WVkCkWUJUrhEZ2db6SHQ4bP+p6VPKgM\nBo1Kj6BcJgLrALSH8WRj8jiOFP6O77tUh4/GpgogsEhDFR6JEubNjmbrKYHB\nrbUCZcBCQQVAtI/NogIKixbuf/xJnMxm9aHBfPvkl4rnnGGiWdARLE7UanZv\n1vqCUMrccUUvtsZlBbXJ60N/kHVo5VjgafJX0OYuyfDgi4ZchOdBbzVEy1Wz\ndeJighYgNIt1h9Va1lmLsBAkPGpKCa1LHdVJtPwNXdnkO7SAmagmCmUwAeGc\nSreN\r\n=pm/5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpLrdLYIQXu02kb05TJFgqvDE469THnfLjRqJ1h7QA/AiBy3w/oMWwHw2HI/8FQIH6RSqoLoQRV/YgWOv20Y0wqPw=="}],"size":16078,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.10.4.tgz"},"maintainers":[{"email":"blainekasten@gmail.com","name":"blainekasten"},{"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.10.4_1592241748833_0.9495444724342494"},"_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":1592241749007,"_cnpm_publish_time":1592241749007,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}