{"name":"@reach/popover","version":"0.10.1","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.1","@reach/rect":"^0.10.1","@reach/utils":"^0.10.1","tabbable":"^4.0.0","tslib":"^1.11.1"},"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":"c279bc0fb9ae84aa77306c5f1a9909d088bc665c","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.10.1","_nodeVersion":"14.0.0","_npmVersion":"lerna/3.20.2/node@v14.0.0+x64 (linux)","dist":{"integrity":"sha512-CDRYWnCUfvn2WlTDVlDmWOV3TD0zYeJSfsd6daq2bqUX1+1jRddm3x/nk2Na6Fn8Nm9pjYUvatE+noin9iVvDw==","shasum":"5f5b3d83e4367b16251bb55d358bf19a4b945b49","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.10.1.tgz","fileCount":11,"unpackedSize":86964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen+EcCRA9TVsSAnZWagAAuHIP/2RQAw5BA4ud9e1FQKgn\nyIQxRrRcHITt8GitshPkLRcHDjrK+tM61ljLu0RAyOsjXcLDvKxhcgTMKVzL\nc0xIjjr/ANxPJYWFkxiQ3N8vnfa8lZkBKfOqYfJpTLqhSpF261eTYVUrlUAN\nZ8JYBbsSHhArsZDfsrqgfZib8lOruY56DvMja0zBws1cd0ziRETctH26yrU7\nqo+QJZyOnDadnRpWO6F+wY1kMhW2ErqV30yBddtIh0Obr+9OS8J2COM/Pgrw\n31F8IuSdLpZDcVIWqpASBoLf9XZDfdhSTxm+N8ZMRDqLt+Uby0AFwlvYuCSp\nflZ0u1PxYbjajh2hTL0p0Xrk2SBk2H7W44is15fCECrt3uQP7H0dAhrwuImB\n09EH0XMlpDi0bCUcSezgs/bENzIW593oe05Ecz0OHc2qKmDsYYk2RuPlW/rL\nKyr+s3bR2O/iOAwuUoMHFKORnYehONE+B3ogz/XASK4WtyicF2lFaath1MdD\nSbqtkl8OD/IUY0nFwFR4k6pyim1QR02W27uyQJfpH2tVx3XKa3xUT7sG/xca\n0aXV/sZj/212UoATbhHHLOEbeiP2aSa3Va2aaxhTethFMhI/ZdIN8P/aJIMr\nWSJpRFoDlNwxEafrdFZ2yHbNy1rWa4Kqyfr9rJBNXM6zZCUj8UuylY2Ldu8I\nExpD\r\n=nbtA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzw4fJHxHlT70MmtJsL4KliD/3Vu+AWn04EnuN9zL6WAIgKmgQViKmHNTOwB/uqNrvIjoXOt4roBxsog0vQbfLkKQ="}],"size":15994,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.10.1.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.1_1587536155957_0.9687764294226164"},"_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":1587536156098,"_cnpm_publish_time":1587536156098,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}