{"name":"@reach/popover","version":"0.8.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":"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.4","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":"81f50310879a4d99f3eaeba3cd95a66303e0186c","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.8.4","_nodeVersion":"13.8.0","_npmVersion":"lerna/3.20.2/node@v13.8.0+x64 (linux)","dist":{"integrity":"sha512-13adZOZMPB2ZYe2e0NnbDz/Zy8493B/vTZUtRWm3YBW6HLVeq+f7OQvCqY0i8fvw81q0xCT1MIaAZ6UXrw81tg==","shasum":"dd5c6f7726bcc5f4771eb6d3d38cc6a641604bf1","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.8.4.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\nwsFcBAEBCAAQBQJeR1TSCRA9TVsSAnZWagAAs0cP/iEODftcqjJ91q7Dzkos\nTZJZq+dgK2Uwnd3i2JMwxppjw+xfMB0iOOEIVGJuJpTbmUaCocZNdG/F5xjb\nC19pRn+m9yNsgg0WmJT8mlcmXLVPecFRZvYCOYjC/NsdYTC/qfB7rUZXFTqB\nqEiGKm1jSGFj0sRU8EqM/xkZG0/NH2I+TPRgpBxp0Oc2UbJ7NTM57FAVffOd\n99ckS/AsWTpuP2WYFWADz8U1ZDb2ar3LaKx8jbo1czskVDZbjG3upGY9Zx7j\nPkGJlkuANNLka9MkuR92LcFGmQIUEvqZXiv/ZKkeRhZeAH3R6jma6FoO8IdS\nGuuhB+TyEvepI7n0tSNTxut0PkEEz9EB8tZzZZGcr0IEgnQIILExd0slRyK6\nKv49nllvzlXIJR8OdcRgJND3MF03ix4ufuTjkj7t+SIUpf1/N7LSOAUhJie4\nCiv0Vko2isZMO/anf//QVP9JhTh41alHKw0zsz2fGDu0niAZxOBR/PaqnEsF\nAG7san6U07I+FegMBGfrS0aWlDAxgIwHCq8WwcqBDI1oi5QVrHT+DEQljtoX\nB+bZmYlXUZTWrXZ1vyqS5mPjzEWTqWzzuTIi3DK4yol+nGZEVQFYXWCmGFNc\nUNvEz667UeZ6drNOF3rHcN5tvILPwRNG64TDet3jymlBJqMrLPqp5y5R5Niq\neDkZ\r\n=yuoJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCC1g59og1pjpVKzx9Y5uiZzx4ACm9vixaHk+AKh3nSMgIhAOP4ykSfSfxuMm6SctNnbQUyLxKTrlnEZnDY6SVNgNt3"}],"size":14424,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.8.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.8.4_1581733073790_0.09313658782696699"},"_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":1581733073897,"_cnpm_publish_time":1581733073897,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}