{"name":"@reach/popover","version":"0.16.0","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.0","@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":"e4c6093db14e3cc24c26794a002dbd8c866c0387","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.16.0","_nodeVersion":"14.17.4","_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (darwin)","dist":{"integrity":"sha512-xmgiSyQwfshMkMNu6URbGrjjDTD3dnAITojvgEqfEtV1chDYqktKdDbIPrq+UGI54ey/IxbRpVzKcIjXiKoMmA==","shasum":"82c5ab96a88c49e2451a9c04b2d4392a9055f623","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.16.0.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\nwsFcBAEBCAAQBQJhB4WKCRA9TVsSAnZWagAAvGwP/04xJYfgwr7qv4LVuF0N\nzDiUrizEtm751r470vrs6wts+yqJ1gtL24/AtpN2ZCpXJ2m01xbQQrjymaEz\ne2IzVWZF6aly80vJiTVoj2KeRMOhs/0BhczttwpXchcCEjeYYUoanNRYKOY9\nNFdT4eEFjETH52y/nBzXyZqvqXDm5PNIo3utb27m58tRLrllJtemG6KEeeK2\nYIU78PHrGpb24JXnUOrteHj+Ze5wdMgBNUM/NRfZRdMzae8AVJ4Qc9fNgI73\nfAOzLeKRs7YZgQIB1w2+YQal+MxOjpkeHc0LZcTdmmzz9MPspwPzmXVlamAz\nj/Q6JHRm6LvltnafvueUQ5IgcQ+eTYwELJt9q1z/52IVIAJ0n+6dRVdSIJzK\nql05QV+93RDbFKWaSWWKkeN2MKNm+MKmsSsX2CK3i1vBM+dbMHwIRB/UlU0S\n/+agWvVewE8/pOmJ0MXwZCvvpo2zD/97uypzAygyFQlqOV2hTCXZxoSbgybO\ntUt5sbm3QemiCJlsNtDJvvXc0fFqIv28mjw3/RYi9RulwoTu6V9C/o1jfwjx\n3Xhuu3OuQDRgFiUQ9ny/P5LW4F+4dFoHliVNIoiwclrV0YFiX2imOcmUVrLH\nUWqF+zXIoYlBrHeaHyk5iP+fzSnA+nzhTY0VazncMceIpgEJ0T8Ywx9UdiX8\nxfg7\r\n=DWMv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiEBR/gbHF9Dy2pWT3dBIoPI46ySlxAi5U2eDczgzBoQIhAPeWsLJU91pqMFCMPirhQyOESWBdfFTPMQiL2DjZRbIu"}],"size":5926,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.16.0.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.0_1627882890410_0.5867824623675446"},"_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":1627882890547,"_cnpm_publish_time":1627882890547,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}