{"name":"@reach/popover","version":"0.6.1","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.1","@reach/rect":"^0.6.1","@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":"c1e249448a3672ccc65698218f0f38ef9814ab90","_id":"@reach/popover@0.6.1","_nodeVersion":"13.1.0","_npmVersion":"lerna/3.18.4/node@v13.1.0+x64 (linux)","dist":{"integrity":"sha512-tMDm/pdN1CFn9YOYNsnvthnq7AulnTQ9DLMrOXOAV8MiKL3R3h14nTBKfVLA1UM75gGe+xvE+bH4QpjYpirTpw==","shasum":"f00358165505a3d164053cd8c86e0c641c600e33","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.6.1.tgz","fileCount":6,"unpackedSize":28837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzxdTCRA9TVsSAnZWagAABPUQAKM9VUDsckVidhYflj8F\nioeS3Cdgjw/tP8eOawydTEUAjZV9XkLjgKgyulGlXJrIdcLswXehxBmDZFiY\n6PXjqr5kx8tkhieURRDLM98Im+AV9BNhKy5nJtZFIydIxtfQuHFsJIOfEPFe\n8llYEMRkyr3KORK0Cn2ttzdM3aWSF9iliQHZfmkmYx5Y2as+QxM8jhmQLHGM\nLocr9bH+CWAPqs+dxTZmWlYX4T2V7gO6MVD4lO0MmJiGqEq/i/P/3khFfTC7\nTIY5gyTMDfS15kLLhSEHKYN/pkaGJyziDvjk84yqMLx9uir+UTKS3Qc1RAzq\nyBLIpFo5W2ZSP9DSx6fiAdmhq2RPQmhW66KXKP7M0ur4P0PTvCgh6nEGoZOi\nJ2wapS/EwWsyHpxv7Eweb++QKl2pke5taCYmarz0NG7BkWBea8laVtOI/vI8\nLfh3WLn8HJqrAZj+nvW5Prdra5vy0WEPKzBViF9iXtJVOoQfhU+s2Jcdx5Zf\nl9R7gFmgt+7/LkHm7t/8w9oIPZxTYz9PFFwQPidm2EfsWY3GDDfCIN7YtlIZ\nHdJ6b84Cg6N7fZHzhOB0HeYjkLK5YeTWuhXohXo+sVcFV2ktVgSmZLBMxV19\np4zAHM3bbpz9lF4+e8AEZmCOZRYTPWii7l4osXiTblA7WBRU+hYqlgbKNg9d\nNnHF\r\n=JwI6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMDqTPL3uXHha0oSdhzdEQxe4Q0tlw+c2S5hltwGjdlgIhAP72EhFdVn5JbVS4ZJsYtXo8E9UDu1lj30NwkmRCjhwz"}],"size":5044,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.6.1.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.1_1573853010955_0.7011334441329931"},"_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":1573853011074,"_cnpm_publish_time":1573853011074,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}