{"name":"@reach/popover","version":"0.9.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 ../../scripts/build"},"dependencies":{"@reach/portal":"^0.9.0","@reach/rect":"^0.9.0","@reach/utils":"^0.9.0","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":"0c789bb48554bf13c62dd09210ebdf2f9af33d30","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.9.0","_nodeVersion":"13.11.0","_npmVersion":"lerna/3.20.2/node@v13.11.0+x64 (linux)","dist":{"integrity":"sha512-HYr+gbBRcgOo3v6QoiTLx3cG+6ZWiXC0V/K0cV8kaCi5HpFiyHLNuyv/2/J63ZdJw2lE/JjSTKf0skQCKhnt2w==","shasum":"5b96de41395d0806b2a153d139ecdf030ba2552c","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.9.0.tgz","fileCount":11,"unpackedSize":76848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebCc4CRA9TVsSAnZWagAA1+gP/1hny9CsT38eoS+acAoS\n8MkPRAmoG8R5sK7lf+FDhtv/ccAIIuRFiFKaCHlIqAqcx7newhoZx0jFWDsR\nk52AfA/5wUriGizdri8swbjkk++1W6ugj7JjmXJN9I2S0uoEGdN7fODSB93w\njHa/eynOJH/S1Kf79vNefLFaB1lgMz29HhU9taWcjfcd/Qn6q4oGCvXPehPM\nTGHjdTCazuryfPXnQJGXAD4uV8FpUbgicC/BmLd1x+bzAdwmh0/9ioS/6PCm\ns5Vyu/bSP9lqJgTAVaUSThf7A3tC2KuPb1TSq1+fPBtXTqR+2b2hgqSqqWsf\nWit8M421WLDfYu/dQts4iiPc/cxWFFobEtI5UJRUYqNPP4GkyiasourCFgY/\nrhFKaUnNKOFbiGDzMfyftEpJptVZoD9lXFwpnUQ+YXZXLcYNgjiQfsx+OS4w\nB6CIjzo9a9jPTW1fAfros74mo7oWEiGSmongRGM5C3acMNhRd0uF6pc8BQy+\nafF+b2mL/ZhAjUT0RxuQFr78ktNnwUe85B1QfnbpO3c7RoW4JtGMfYCZRYiB\nEkXSpueM1l66a9xo+JPRzRE+VIe+BFJWw2bRX3aDGJm5Zd0jA5p8vD90iBqv\nP3tHqxobBdB3DGzKBs0tKC/S/io0zjZyGBYsPTw1qpBCAv+CfoZBlsL1Qiy9\n6eDu\r\n=dW0w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCX44DEP8UrfjIeZnhr3Cnim48usP4kbWmVOezZQRU3IgIhAJ5gzLFLyf0Gq1ZWZkbfBIAUTwcZTnTeEs39XL+ko1t7"}],"size":14364,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.9.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.9.0_1584146231690_0.46499244671454965"},"_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":1584146231846,"_cnpm_publish_time":1584146231846,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}