{"name":"@reach/popover","version":"0.5.0","description":"Render a portal positioned relative to another element.","main":"index.js","module":"es/index.js","scripts":{"build":"node ../../shared/build-package"},"dependencies":{"@reach/portal":"^0.5.0","@reach/rect":"^0.5.0","@reach/utils":"^0.5.0","tabbable":"^4.0.0"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","gitHead":"7e33672d882cd6df77ac8cdb76b6b4a21dbf28c2","_id":"@reach/popover@0.5.0","_nodeVersion":"13.0.1","_npmVersion":"lerna/3.18.3/node@v13.0.1+x64 (linux)","dist":{"integrity":"sha512-VgOofkJKFNtT5X61lLvjhTqFSLVBuCj47ZDR0IXkVstkRiRSfwoQDiu3Oze499hAQ8We8IH7MRyIi28yeCLJgA==","shasum":"deefde027366f8a2758be0e907da971bb84d97f1","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.5.0.tgz","fileCount":6,"unpackedSize":28753,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduxX4CRA9TVsSAnZWagAA27EQAJF4T1667S3X/fZXNQqI\neWXo2M5yXCRlqgGvHWXZUjV8Txu3y+PofRlbdFwJj0qYvbLOAnSO5tLtSvDw\n/76WmEfbBV5ldcGKZ1ho66WvdTl+lOCA4XHa48NMZzp9wg3zTvOLuuLjjVnj\nQRBB8tRPxRxl3+kejizSsvmnR9HiEgKJ4chy+gfAKHL56h5jg3uzrh/oRW+O\n1WPjC5KehVfkVr7VuZyDv3aW7Q/qiLygzbqhZWUOI59Xt3Gm5OVVboZ1Ek1L\nT1oedmMTj122+zYNQWdpBt8R9elu/22u5OGumThjSX3FF03u3PdO5OL0coXl\n1SZlJiOITDNZs67MniyyZUdTxpAorJdtqRkH/qUGuqnL5aXMRujukTxOg3LY\nk3IDNBwES/VW3eu32qU74yX+dGbYu2QduwNV8ulCYmH3sVFbYoG2mVUlwYFK\nPaW9Eo3HB1upaz/Hx00Lk7odxvcvyatylYQ6DdDcDhrCzYrM3lVluUBevYrf\nRCKMbgWfMKFE+lKmFoPjtu2Y3Na4U5ZtUURYxgcEXuQN6MVzAlLsCFj3RR61\nGsQCO0AhclkY399Sh2YRZkcHq4IR+XhgY4lH75qryXBDtSrYcodFP+JRJpIv\nDvAcMzOZW+XBAvNbI1lQuw5gd1HcPkT1C7/qJY083bUEJKUu/E0t/pAFnxi4\nI+aL\r\n=3Gcu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2KyXCxY3D9N2kbIxtJEyY/FiCZjEmgrqRwFWgxBes1gIgXz7XyT/dIK3NatvRBtnnElZPmVrP6ffp+VOYWVgC3e4="}],"size":5023,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.5.0.tgz"},"maintainers":[{"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.5.0_1572541944455_0.5374221248731619"},"_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":1572541944585,"_cnpm_publish_time":1572541944585,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}