{"name":"@reach/popover","version":"0.10.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"},"scripts":{"build":"ts-node ../../scripts/build"},"dependencies":{"@reach/portal":"^0.10.0","@reach/rect":"^0.10.0","@reach/utils":"^0.10.0","tabbable":"^4.0.0","tslib":"^1.10.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":"e95268bdcebc7f0b5311beff4b6a8e29636decfe","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.10.0","_nodeVersion":"13.12.0","_npmVersion":"lerna/3.20.2/node@v13.12.0+x64 (linux)","dist":{"integrity":"sha512-Iff9qHuJypxdG7a6IiAZFFgpbfQK9v3FH+GDsdZiKLbtmRDIMC3AM8ebkBTKUAnEsumHekBrk8cf9WAIJVz1jg==","shasum":"054601f98ef1616a0d439be4dafd8cf7ac172da6","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.10.0.tgz","fileCount":11,"unpackedSize":76852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeiTJxCRA9TVsSAnZWagAAhswP/RxUvWR8CUuo3J1TJebH\nxvplFK+5AV1t6uELOubjrHMpEdQuEm4Xftr21CqWrm2mQ4FvGdkMZJaaHXpa\n4jdyT8YxzulPowiFahY78D6Gi2tU5bnhKol+QmkBPUAq6gfCoBqwBVW5Ciio\nVjddhL7/JWPcxXacZUiIQ7rblVMpK1qnDmlA5QQNsjeQbcBVFnI/YInYB8w8\n1Pm1aSKkjdQSrJYNQx0n0qnIi56f1yTghOjeDXHCM28la7bTmYZ7WkH4ay/N\nPgQwCHYEYjC9FB0vsNPbsw+dODpXSpt5jNAHO/xqU2MBZF9XrlePR2OsuD67\nblgPvPSwRiLmWXZ1/yKo9LYox/AvfQ1hzW4ahS/wH8XQmv25wwGjLKXtY4H3\n3+eyH32D7heupnsuAPkCHr6d2CQo5U78zqRzNH0IBZ1c8f5t6pnde82pBb8i\n7ciEmzDo8QmdkLVKO3i3nfrEGu9kIo29lLO77JZafKm5On5lKQkyhAqiU1LI\nVhFU60TiWWkTb0553f5VJLAFONMNlEvygw0Y1wMYHo9R95FDIRWFZBGTTV53\nF/5QDRZpeROxPYO0CzJ5FKJ+B76BMkkRG65QMzQYF7FfbED2oKRjezrJFAQP\nwK+mwI2EC2beLjdEusQajJnkfYJjIfcErhGBxs5VQvh8LCfmISEhXfv8RByr\n/fD1\r\n=ZTnE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGa+ie3YiVFCu+yhF3E+YLdNWekLZ/cy4B542ge3TtCNAiBUD+2ex6g0zfOwekl2Px1QZfKvZv80pGOniz4R1QTyBw=="}],"size":14358,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.10.0.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.0_1586049649050_0.6360705338805519"},"_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":1586049649166,"_cnpm_publish_time":1586049649166,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}