{"name":"@reach/popover","version":"0.18.0-pre.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"},"dependencies":{"@reach/portal":"0.18.0-pre.0","@reach/rect":"0.18.0-pre.0","@reach/utils":"0.18.0-pre.0","tabbable":"^5.3.3"},"devDependencies":{"@reach-internal/dev":"0.0.0","@reach-internal/test":"0.0.0","@reach-internal/tsconfig":"0.0.0","react":"^17.0.2","react-dom":"^17.0.2","tsup":"^6.1.3"},"peerDependencies":{"react":"^16.8.0 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"./dist/index.cjs.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","scripts":{"build":"tsup"},"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","readmeFilename":"README.md","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.18.0-pre.0","_integrity":"sha512-pGYSXMBILqVRgH+vRQvI6IIJAROZjOvUsSzXEfYIJyFWvpMbdgFXyh0o+txj6egAQh5bsoBhGsmL1GZdwYykMw==","_resolved":"/tmp/35cdef386ec84d2453a128b7f4aa18f2/reach-popover-0.18.0-pre.0.tgz","_from":"file:reach-popover-0.18.0-pre.0.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pGYSXMBILqVRgH+vRQvI6IIJAROZjOvUsSzXEfYIJyFWvpMbdgFXyh0o+txj6egAQh5bsoBhGsmL1GZdwYykMw==","shasum":"f3b1afa706cbadd0a6cf419e2ad2b2c1b606d502","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.18.0-pre.0.tgz","fileCount":10,"unpackedSize":47955,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAV82moNC28c9RE3Hn6A9SQB7INyvxgRrB8g2cgF6LI4AiEAwJCyYCQA7GH0v7hL3dUB9oRKxRWgXvzCEdglnyYvPDI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRNGFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp58A/8CNIkzlqF0KwAzsqYp5aQ/Hz11p9eQGvlPbyWAmFNyQSwfRMH\r\nFXt34KaxYyNNNyxeOiqLYvdksjo+w7n6n18R9K+f6e6scEOg7S7e2Q1jbeew\r\nq+aqIduK6AjnqR7NbU/DZHZ33ezs3SNQsqCWWdmc0yG4RSk3ko/SHD72000J\r\nOW48/+Ng+COa65dLViZ4iIwmG33giCglkzrQhXpPbJzVO7JSa27BrKyxDNGy\r\nqxM5eZthzYHnCcEFLCFVfmudr6+dXXngjv+lTGErymWApisM3N1F9SJQ8+aR\r\n0EXIzXwNJiDs7PzOpc+9u3exkWEGeO0J75Hw4rU73y77JFbo7JcRW4Axgd8H\r\n0ZtBIluNvh5b1DTvys8G1Al5NMYcUWHphfNSmGggqCLSImLpmvwW9e07c4lg\r\nT2cuGtHvy+9SLNUhk9d0wVVXiCw9y9mepfxVx5i6vZPwiDJGWQNDLnqBTIW3\r\ntyg2dGTSG0/Ag850LbvQGBXzz8a4gAyrzJ9iN6FJEIUuuR0TIve4DKujQGhs\r\n7o62P+uAAGq2g1meUxvipLIa6VybJVSaOSvwBAJ4g2szLprWVxqPS+xbtjOx\r\nGTuaednK7PsiqACtG4Wh35bMIQfpIuraouICHyMXjR0kkKGqXzgPmdgzEpy2\r\nko0UC/UUTkeAvgrsOe75Ygm+aq/eSwwiDW4=\r\n=B+IL\r\n-----END PGP SIGNATURE-----\r\n","size":12105,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.18.0-pre.0.tgz"},"_npmUser":{"name":"chancestrickland","email":"hi@chance.dev"},"directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"chancestrickland","email":"hi@chance.dev"},{"name":"blainekasten","email":"blainekasten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/popover_0.18.0-pre.0_1665454469625_0.4825070527306501"},"_hasShrinkwrap":false,"publish_time":1665454469797,"_cnpm_publish_time":1665454469797,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}