{"name":"@reach/popover","version":"0.8.3","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":"yarn clean && yarn compile","clean":"rm -rf ./dist","compile":"cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json"},"dependencies":{"@reach/portal":"^0.8.2","@reach/rect":"^0.8.2","@reach/utils":"^0.8.3","tabbable":"^4.0.0","tslib":"^1.10.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":"5bf1ce48db867c6b3c88e19f1614a6a725e829a0","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.8.3","_nodeVersion":"13.8.0","_npmVersion":"lerna/3.20.2/node@v13.8.0+x64 (linux)","dist":{"integrity":"sha512-JZgxHMMDuJVXi9CtpQgbRH4HBczd/a3I4+v10Dx0D3ejBojRRUfOZu3XEL8Fg7osnAb26/bw2tZSFE/X5FwaSQ==","shasum":"7ca7251feae53ec1d59e84eae23756983f1928e1","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.8.3.tgz","fileCount":11,"unpackedSize":77003,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRzczCRA9TVsSAnZWagAA5LkQAJ/uKrNThA51B7YFkfyN\nSlYLzLjNcUCThihilA08xoozNhbaZn7soZTLwWKIrT13spD2dCcaoZDKHTYQ\nPlqdsEGmEK/LrbvqhTrBHfjB8V92R2qnxyvbM3sdwolSM1dtfo/YrAAo/Inj\n648wBqhMpZr0YeDdIMf8BX7f2kEqbsxsMZFLYBukAovAJFnbFISKulPoDvB3\n3cquyko3xjcFBMZ2Cyrrmory1W/pLALr769UaEum6EjWD3BdaJ8M5NspbwNn\nEI3YWlWujEzZ3sxT5velQ0BXwqJhSlX6ugUxT9r1DIILlpUtZSTD5CXI0doF\nATrdRpsI476AqtfwFu6F5ms4OW32b3G8OVfoVD9XwYzFRGHOIzShhYKlFJsj\n3lbr0A0yFEZkLCDX6aQnhQiAuN0RsdC3kIV+DzgQxnT/wKYRTeCXmQwg1MBq\nr6tvYWGLSsMag8FXPg1tEcWfdkbzvLh/sTGgpBPehsQOd9ylj5ginEsxwYJ3\ncBpdvCnAH/0+GO3UhSRv7iTUOJFoPtNXcS1ZTe1B6spVjHppMnp/s2KWbiVB\nPEg3i09aSE8cEH4mCAq1zJb6ckPWUi+3zPWts/owBqViB2/xuWA+bCr3rbAe\nIRoLFvJ1v21ZJaWIjOwE2biKEloKITc/YnF2sN4fc6YoUkuO14Hk/CRnF1Sh\nWIsI\r\n=gOHG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrOqPsIxCGq/N3ryao0SWMY2N9FbNdLVwT9ZGVtLHVxwIgB2MwfEoTMXJJvMthwvffVKCREm8mHV6izor+jE9cDZQ="}],"size":14424,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.8.3.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.8.3_1581725490698_0.27393627079507343"},"_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":1581725491177,"_cnpm_publish_time":1581725491177,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}