{"name":"@reach/menu-button","version":"0.13.0","description":"Accessible React button dropdown menu.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/menu-button"},"scripts":{"build":"ts-node --transpile-only ../../scripts/build-package $npm_package_name"},"dependencies":{"@reach/auto-id":"0.13.0","@reach/descendants":"0.13.0","@reach/popover":"0.13.0","@reach/utils":"0.13.0","prop-types":"^15.7.2","tslib":"^2.0.0"},"peerDependencies":{"react":"^16.8.0 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"dist/index.js","module":"dist/menu-button.esm.js","typings":"dist/index.d.ts","gitHead":"c5234721d372e2ab2a7745475007605e78d18895","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/menu-button@0.13.0","_nodeVersion":"15.6.0","_npmVersion":"lerna/3.22.1/node@v15.6.0+x64 (linux)","dist":{"integrity":"sha512-5A0ZNZgvuQnn+BWr69QGQuYFvGvYYbCbK0zHWWi3JZthlc7j6shLfb7y9NDQrkhrTYg6hzZJxm4g9Y2YLbwLwg==","shasum":"7e2cae631ecf1743e00e5c58827ae6c3a44475df","tarball":"http://registry-npm.ywwl.com/@reach/menu-button/download/@reach/menu-button-0.13.0.tgz","fileCount":12,"unpackedSize":240026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD23ICRA9TVsSAnZWagAAFYgQAIwAe7cMMUH3esTiqOH3\nWaDj2B+MOuzsR56qfF4gj5H03vHMdyX/1FpsULmeWq/D3ONknCEnvlTXvXQP\n7AJ8If8bJilJdaIC2+JYFSxkAbwOtgRFNo8F2HZcnJLJTnczoNwIeLje+HEU\nsotpixU5x7FCiBBw1OfE90bpg/xzzCbpkIik7SzwA7VZzFXvv5Lga+TaTZkQ\n94kI6JVm4arg+CZ5lghbEaleu8DqwVBmrdaOzfVNMO/4gcAWFkWxaioZvw3d\nlF2KL5o7G/kwtadpwCZ5pEfNgrcFXDYx8rDu2uMTBaNjcaJYRA/lVHGjtNFn\nuUXPsZ2GbI5UL2l2nCT3ZnW/+qG+BcAYFrtrCDHFHvenhpY5I0IvwBAQ9RVn\nViy9wDG5c/y+Azjp/UFHQvEu8+5kZfumkHFyGq3VUCn8RA6j+mr+fABlLubl\nKiNewOoNsoNjO2sg3LqFhcUbv1WeF4fNv5H+6UVDrxIn/db3t8HAacZFQN6j\nxVbj2IhHDNzMm9quuUeDnGsupMM1+PkdNTWNocOySvnHJkbUCCxfDdByY6Ol\nxiuTnK5xftfgehmJrUHbdjHSal3vJ0aCcLIDg3fY3BKN07M+b0ov3nM3atIC\nLuP3xTyL/CGDN9tz9oQwSn68azFl2u28C/HGAr5JuWWvl8cKfs2vFA8k3ury\nQmKD\r\n=gFpi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHqBN+rfLK1ACfo4B7mHKqLU+q7rG99nrR4Sv+Pkde8ZAiEAgzSKSwMj3kxe9KudgWYqGclm9krmdTRNv9tLpmfrju8="}],"size":62965,"noattachment":false,"key":"/@reach/menu-button/-/@reach/menu-button-0.13.0.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"blainekasten","email":"blainekasten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/menu-button_0.13.0_1611623880495_0.6771237546652991"},"_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":1611623880632,"_cnpm_publish_time":1611623880632,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}