{"name":"@reach/popover","version":"0.10.5","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.10.5","@reach/rect":"0.10.5","@reach/utils":"0.10.5","tabbable":"^4.0.0","tslib":"^2.0.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":"86a046f54d53b6420e392b3fa56dd991d9d4e458","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.10.5","_nodeVersion":"14.4.0","_npmVersion":"lerna/3.22.1/node@v14.4.0+x64 (linux)","dist":{"integrity":"sha512-S+qWIsjrN1yMpHjgELhjpdGc4Q3q1plJtXBGGQRxUAjmCUA/5OY7t5w5C8iqMNAEBwCvYXKvK/pLcXFxxLykSw==","shasum":"ccf89f6540e6477d8d087e78a8294e89295a743d","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.10.5.tgz","fileCount":11,"unpackedSize":87542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe89pQCRA9TVsSAnZWagAATVgP/jHlyl8RY/F65dFL29SU\njK6K/kfUUxMDcW6dTS40VFeWzm8A6PERITv9kurLqmejHxJ2NVwjYLTXRTfs\nx4Wm5d8ht8gV08Y7DDfBhHkoj1knp+lFnVtat57VPA1upRf8Kwbe/7d0cvu3\nzuc2AvjkxctezYoPtBXzohE5YM45LeJQ9rYudOZWKf0lB85qPQ0fNv2tvj02\nfDwrCc081QkE8wduC+L79iEo65EXgfxLefRkOV6iCdB1LQ6N4hGM1WWvFXCK\ntHcjRko4ET0SCEAIRWN2zQq/yUwNNFn2VzDfsG/nISdm4SjacmxwmXU4bLIq\nxKF3FEgi37ZXakdHGia7zGa+Uv5UOv8fr4kFQa0MmkhIc3ZGsRM9XCyFeEOs\nqfmtNZ213Q5UCrMSj8yBdwksjqzLWsGMyzNkd3QQBruKc1WQr7e88jJD9F0f\nsJ591103i4HP9NtYUFCBhV+WwuMVDP4Eg8ZBVVKWHyCxcQo+O3p6vivW4Hoi\ny+viEOYSSga5lgCiIteExC6sOr8nZT05PJO32aabN/hZZvvm/DwspmXer68j\nEYulOmHQ03c12rTThATFuF33hRC52dfYYcIPw417SiFpVcGcrhYA4T5kVL6T\nGyZdFz0rqlj/MxR4GkD5RMwgRwZ79jQ41Gb2Rj/7Jg7N2EAQPBBOYw+1x87O\nS/7u\r\n=/XG8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoES5wGIXtcwQa3NbQ0AXIwLPxwWmXaya9N9112sxmTwIhAJdglXut71Fyp0YeFCEChcl1fC4oQVTSaY8aqzlS9LCG"}],"size":16079,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.10.5.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.10.5_1593039439988_0.43809358094724615"},"_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":1593039440113,"_cnpm_publish_time":1593039440113,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}