{"name":"@reach/menu-button","version":"0.7.0","description":"Accessible React button dropdown menu.","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/menu-button"},"author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","main":"index.js","module":"es/index.js","scripts":{"build":"node ../../shared/build-package"},"dependencies":{"@reach/auto-id":"^0.7.0","@reach/popover":"^0.7.0","@reach/utils":"^0.7.0","prop-types":"^15.7.2","warning":"^4.0.3"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"gitHead":"c6c10662e6eaf229594e4d6e6a38d8c9baa35ffa","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/menu-button@0.7.0","_nodeVersion":"13.5.0","_npmVersion":"lerna/3.19.0/node@v13.5.0+x64 (linux)","dist":{"integrity":"sha512-iVx8xQNQsql6a7SMZyMamKsKZEMml4Vrx5UzzqsN/X+Y3BkDir7AzKDVZBK1rbRjqpRJTOayAGIVN76nXleyhw==","shasum":"f690ab8330f7c80a88fe37587b8dae4f2f3f5164","tarball":"http://registry-npm.ywwl.com/@reach/menu-button/download/@reach/menu-button-0.7.0.tgz","fileCount":7,"unpackedSize":92190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/vD8CRA9TVsSAnZWagAAFrYP/2pScpMEeBe1UMHIEWaM\nxh+3jJLNwIvaU0SRiJCOHCofvenRlmSw4LY61DuR6MR8ItI7NM0ed0jDQoc8\nbNqInMEY8sZLiYTMnDucp5//Z/gMnFrbWug2qXjdzRDvDn9oclhoY1+eJb7R\nARSkc3EEN/5BaAQeAfBgqiQo3QgQVuh2867t+s4lsO6nbPFDlVDeXzumS7IR\nAQcGtXx5w1dZo8cVseA8hrZJgCzmL5SpbhajWwhDni2qd7xhs/KX5VhIQLQ7\nFPsInK3Rrnbz+qNQl2ceeWcwZC64o41Zo/h6Bcpzl1xVYQANSjXKSdtqzWOF\nywU9VUHkGELoF+PLwp635eU1iuVRdlTvhO6FpnULwusRW4HkLBm32P3sK6b5\n0Pp+7oU0AR899631vUM76UDp5LjCETSrL/kcQU/hMaQV8+df5bHo7CLARB1Q\nrT2t0hKbfIGUzdSkSk6IjYKt7mqQ77ir7fiO+9x3NQeGa/12QwKWB9Erbgs0\nWkr11L7yeJoNTUIkmZ3aXzwPEy8v9XV7AdicvL+seAUFn3+fVD3Oz6tj2R7a\nn5zZaJ9WsPwo06IpvriCNrYERvRIubBWHmO2e51a6fwAEVfm6FcNiVQV0Xed\n+uVC/DS05Qc/lM/oeROrZAubutzz8LWhUsfVZlzuo7s5ybz24U9rjd/7ML6f\nGUag\r\n=DsEe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClO4OVznzhOJNw1/D0bf6afuWzlIrvoCrTEDepceRjtAiEAsDeufE74dkyfFJCfSaTARgyIDt5o/16+FYWRPMXpT+0="}],"size":14095,"noattachment":false,"key":"/@reach/menu-button/-/@reach/menu-button-0.7.0.tgz"},"maintainers":[{"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/menu-button_0.7.0_1576988923589_0.01828582473680429"},"_hasShrinkwrap":false,"readme":"# @reach/menu-button\n\n[![Stable release](https://img.shields.io/npm/v/@reach/menu-button.svg)](https://npm.im/@reach/menu-button) ![MIT license](https://badgen.now.sh/badge/license/MIT)\n\n[Docs](https://reach.tech/menu-button) | [Source](https://github.com/reach/reach-ui/tree/main/packages/menu-button) | [WAI-ARIA](https://www.w3.org/TR/wai-aria-practices-1.2/#menubutton)\n\nAn accessible dropdown menu for the common dropdown menu button design pattern.\n\n```jsx\nimport {\n\tMenu,\n\tMenuList,\n\tMenuButton,\n\tMenuItem,\n\tMenuLink,\n} from \"@reach/menu-button\";\nimport \"@reach/menu-button/styles.css\";\n\nfunction Example() {\n\treturn (\n\t\t<Menu>\n\t\t\t<MenuButton>\n\t\t\t\tActions <span aria-hidden>▾</span>\n\t\t\t</MenuButton>\n\t\t\t<MenuList>\n\t\t\t\t<MenuItem onSelect={() => alert(\"Download\")}>Download</MenuItem>\n\t\t\t\t<MenuItem onSelect={() => alert(\"Copy\")}>Create a Copy</MenuItem>\n\t\t\t\t<MenuItem onSelect={() => alert(\"Mark as Draft\")}>\n\t\t\t\t\tMark as Draft\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuItem onSelect={() => alert(\"Delete\")}>Delete</MenuItem>\n\t\t\t\t<MenuLink as=\"a\" href=\"https://reacttraining.com/workshops/\">\n\t\t\t\t\tAttend a Workshop\n\t\t\t\t</MenuLink>\n\t\t\t</MenuList>\n\t\t</Menu>\n\t);\n}\n```\n","publish_time":1576988923771,"_cnpm_publish_time":1576988923771,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}