{"name":"@reach/popover","version":"0.11.0","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.11.0","@reach/rect":"0.11.0","@reach/utils":"0.11.0","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":"7eaa66982cd17fb012c13c97e6a1770f75b6ce00","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.11.0","_nodeVersion":"14.8.0","_npmVersion":"lerna/3.22.1/node@v14.8.0+x64 (linux)","dist":{"integrity":"sha512-WOIMdktWuOIGs4NY91ynWyFsxFfDDzObhnMV3490dWBnfuW50ysn6KUSQkoVd7QsxkV6EnifyFvth7YJqirN/w==","shasum":"c5777547ac43a88d89019869ed3694f96d30ed39","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.11.0.tgz","fileCount":11,"unpackedSize":89976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQArVCRA9TVsSAnZWagAAje0P/Rrd4pVqg5N3pKL4dYSD\n0WjueYd8NJuI0R5DjJUSsI513nkUF8ZqrjtJ/zxkh0W+r/6qgk8kHFaz+odM\nskkln2leszqkcUDOCuQ8k621GU4MVbjx+X6UKRVLr9yXGrarDkuChS4r5MH+\nkpC/xeM1AIgRF2SNlf0L+FFy1oM5Zd/4zcQfWEHF+yEp2fnhb7QRIYj24mqn\nLHU1nGhJNm85oy89IKbZNutnGqlVK6jDdnRxEJDOadwYztdwEp13mw6XkkKb\nH9Zt9EyiR2Cc7JLw2CU/jN1eXx5xggy3Km9jnhSrxPhC/bu0Zq3vfb9dNzL5\nckBtdPow7Yq92EHogMPH1IrKvUUr0s2oEFqipBjkH2k0OZTEj5MuKHZuFcdn\nK1MJWuQke5AOViqFbBRJ3HXVqfLtm1nArOJTbJ+Txt4FzAdv3l13Luh2Sv9i\nzh5IueVIZXU/TcxNJy5k9HJgsWOejVP1fmGqrtbbbtseuLYRWJH6bCxe+YAB\nKisu/k2SFm66Dc7SnBOhXQdi8HfGvTcewln8LCHIswjCmQPJVB7pfofAzIPo\n28VqXgAfxm3iASvQLksO4sCef7j38AVCKag3N/Oi+f+7tOlMhzLWG1gow/eP\nINLeTBDM0Gxmb9o7HA7zbKOtkyDPy2OARPa5BKAOdYesm0NaAERi8TNjqDO6\ndCUU\r\n=/ihL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDVTohMVaoTuZeo6d+kooUXIorZNW+Zg0SaVxSwK30RaAiA4p1jvjGTykA03YL/k8Q3pIFwtHfmu7aBuL43cMxsS8g=="}],"size":16405,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.11.0.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.11.0_1598032597286_0.9271901124867354"},"_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":1598032597456,"_cnpm_publish_time":1598032597456,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}