{"name":"@reach/popover","version":"0.7.1","description":"Render a portal positioned relative to another element.","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/popover"},"main":"dist/index.js","umd:main":"dist/popover.umd.production.js","module":"dist/popover.esm.js","typings":"dist/index.d.ts","scripts":{"build":"cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd"},"dependencies":{"@reach/portal":"^0.7.1","@reach/rect":"^0.7.1","@reach/utils":"^0.7.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","_id":"@reach/popover@0.7.1","dist":{"shasum":"af40518e8940bc4bbd0ae5a82564c1e185af62cc","integrity":"sha512-IdaSEAxPRyxrSMd3SyksK56B28MIF48BbyXXFG1AJEoI0oy1QE/og0oD/V4jH16fTQCei/trB9PgI0N3gYT1ww==","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.7.1.tgz","fileCount":17,"unpackedSize":120319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFoAfCRA9TVsSAnZWagAAocgP/0xmq5IH0VGcfJgwoPjx\ndaTmGj3TOoojcNDKGUmsUeAIF0noQQqKrJuTEy2eLSgyMplGEV3iUx1AIyEy\nCHc3nQSgoh3FSwZXB4skvZdUI8jpWpVCx4St5FbJZpeVewd+WMMCbxp5dzWj\noC7fHtVBhXzEpQhCWzAZ2jk3etOhZn1sLYFMqyi863w2FgG5mlj7RnbSMp6z\nAe/+K5ixJhVX9TW/U0wT+OidMXZEezvJWFtrNXH8Z7qQxLdaL/9lVWUcl36L\nFdTM7JS3GD136NfuiPlGvYxMPqLPB+1EgfVuORleWfxPv9yXbtMKzfuksoTX\nnvLeGiRTY97IdrbpoJty73TPwpBlhw/tIK+BZ87BULCDA5UgQVJUo3KAKR7s\n1REn1ZsIDFn/wDcPE0mwwyxLbn34P8tJmSqQWvjyjGOZ8Q2bXSMJqWJbih0d\nsr7I1Z+Evy8lTP2hVcx0AzfzjhddSUEvE8RN9cQka8MQplOxSFYHTMHhRctG\nEiu9dmyvHCVm8MedJVL0ZVnoqPL1/L4ULFEzkB8fVSZOELEr8U+HTmUzMcQi\nmF943FDSq7Ou7y8b8NzlRTSh1Vspb0XJNuHvRY9WUhOuAy9vZ8upRZQ1VNBs\n865F5K0CGGulcbJUZuwDYUUAMlj4qKz+rEoL4fFoZgnrKPlKpWpR/UWhnpYf\now1c\r\n=m5id\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFJ4/xubOqFtWaOkIwybNRUT2kFFeVT4PypmWSuOSDfNAiEAgL22Nq7L0OV9wSPK3katbQASbJKD7eYlEIDXAVaX9ng="}],"size":19308,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.7.1.tgz"},"maintainers":[{"email":"chance.strickland@gmail.com","name":"chancestrickland"},{"email":"npm@mjackson.me","name":"mjackson"},{"email":"rpflorence@gmail.com","name":"ryanflorence"}],"_npmUser":{"name":"chancestrickland","email":"chance.strickland@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/popover_0.7.1_1578532894868_0.29622136106852825"},"_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":1578532895293,"_cnpm_publish_time":1578532895293,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}