{"name":"@reach/popover","version":"0.16.2","description":"Render a portal positioned relative to another element.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","sideEffects":["*.css"],"repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/popover"},"dependencies":{"@reach/portal":"0.16.2","@reach/rect":"0.16.0","@reach/utils":"0.16.0","tabbable":"^4.0.0","tslib":"^2.3.0"},"devDependencies":{"react":"^17.0.2","react-dom":"^17.0.2"},"peerDependencies":{"react":"^16.8.0 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"dist/reach-popover.cjs.js","module":"dist/reach-popover.esm.js","types":"dist/reach-popover.cjs.d.ts","eslintIgnore":["node_modules","dist"],"gitHead":"d81d4627145952b415b42537ef6497838567baa2","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.16.2","_nodeVersion":"14.17.4","_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (darwin)","dist":{"integrity":"sha512-IwkRrHM7Vt33BEkSXneovymJv7oIToOfTDwRKpuYEB/BWYMAuNfbsRL7KVe6MjkgchDeQzAk24cYY1ztQj5HQQ==","shasum":"71d7af3002ca49d791476b22dee1840dd1719c19","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.16.2.tgz","fileCount":9,"unpackedSize":39590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2YGuCRA9TVsSAnZWagAABYUP/2i6ziHMCFCGuxyQ++sV\nvJVG8dk8Qa91qAvVTd6gE0GEydabXSWpo8VmBSxKOlzys5Z8wW/D/efy6uUw\nDMnq/5CVqUL3aeE6Kl0WWq/w/0M4dUfpyb55gYUt27oI/VpS63N7Lgz3a/5M\nHVysYmtapuJmUQdOzu6sL/8gz+JBHKz/Z3WLlAKQvN8vWpfWp/PUp1Hy0Ikj\ngmqh6m8WuIQWIbGHGRKxO7rLIMEc/aaWxdOLowpmZQss/0o52Hkt2RahkyTC\nSLdNkhgB4V+QjQxjqGnaH8N7fogqq/UvqlImu47ingTEA03Oj0wLxwTd3z31\nv622QCSj9S96O4KD5qf9nDOU4CdXFOQrh25j/R/Y6jM2UCjEvWmn54W+tlDD\nscgCPLuK3mE75sEYI12cvNrRmaO7P9UmNjsfzVrjVEUN/oEM+1m+yBrVyobn\nO57bc0fBhfoYmueEShRm0N+7/Uem6xmhXtOB13bo4g1GO5E0xzu0pehOI5nm\n2Ow+aF9dTFnpgRbDyHgTS3of6pAlyQG9frG9nhQZuu1Z1XWhGK0xwUjVxHgg\n9UOfCpGQk90p/Dnf5iHn824j3QHL+aigw2x/PgWPC0vdN5VdvMWYqB6dXt50\n0bzqfDY9ikmW+PiummUODdodIysSHdoqbRmpbnbFyJu+bwz/NhVCvQhynxut\n5MK9\r\n=DMYE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFYJsAv/Y75YUDbUlgcjZNFpsPXyemkUd9lS1I7eEbQQIhAOwvIG+OzfWuwQz7PdCzEp7rhGGQjCgKzuQIH4DDsPu8"}],"size":5928,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.16.2.tgz"},"_npmUser":{"name":"chancestrickland","email":"chance.strickland@gmail.com"},"directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"blainekasten","email":"blainekasten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/popover_0.16.2_1634502599418_0.8302876947789208"},"_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":1634502599535,"_cnpm_publish_time":1634502599535,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}