{"id":16360973,"url":"https://github.com/kingdutch/react-disc-menu","last_synced_at":"2026-05-07T07:40:26.385Z","repository":{"id":57333145,"uuid":"183621848","full_name":"Kingdutch/react-disc-menu","owner":"Kingdutch","description":"A circular menu component inspired by Second Life built with React and Styled Components.","archived":false,"fork":false,"pushed_at":"2019-04-26T15:08:15.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-25T06:21:27.730Z","etag":null,"topics":["react","react-component","reactjs","styled-component"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kingdutch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-26T12:07:39.000Z","updated_at":"2024-01-02T18:48:12.000Z","dependencies_parsed_at":"2022-08-24T19:32:24.933Z","dependency_job_id":null,"html_url":"https://github.com/Kingdutch/react-disc-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kingdutch%2Freact-disc-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kingdutch%2Freact-disc-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kingdutch%2Freact-disc-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kingdutch%2Freact-disc-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kingdutch","download_url":"https://codeload.github.com/Kingdutch/react-disc-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239742416,"owners_count":19689309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","react-component","reactjs","styled-component"],"created_at":"2024-10-11T02:12:43.952Z","updated_at":"2026-01-09T07:30:13.649Z","avatar_url":"https://github.com/Kingdutch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Disc Menu\n\nReact Disc Menu is a circular menu component inspired by Second Life built with \n[React](https://reactjs.org/) and [Styled Components](https://www.styled-components.com/).\n\n## Installation\n\nInstall using npm or yarn.\n\n```bash\nnpm install --save react-disc-menu\n```\n\n```bash\nyarn add react-disc-menu\n```\n\n## Usage\n\nA single CircularMenu element is exported by the module. This will render each \nchild on its own wedge. The wedges are organised in a circle with space evenly\ndivided among all children.\n\n```jsx\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport CircularMenu from \"react-disc-menu\";\n\nfunction App() {\n  return (\n    \u003cCircularMenu cutout={0.25}\u003e\n       \u003cbutton onClick={() =\u003e alert(\"I'm a button\")}\u003e\n         \u003cspan\u003eOption 1\u003c/span\u003e\n       \u003c/button\u003e\n       \u003ca href=\"#\" onClick={() =\u003e alert(\"Links work too\")}\u003e\n         \u003cspan\u003eOption 2\u003c/span\u003e\n       \u003c/a\u003e\n     \u003c/CircularMenu\u003e\n );\n}\n\n// Render our app in a \u003cdiv id=\"root\"\u003e\u003c/div\u003e element.\nReactDOM.render(element, document.getElementById('root'));\n```\n\n### Properties\n\n`cutout?: float` \u003cb\u003eDefault: `null`\u003c/b\u003e\n\nA number between 0 and 1 that determines the size of the cutout in the middle of the menu.\n\n`itemOrientation?: [\"toBottom\", \"toCenter\"]`\n\u003cb\u003eDefault: `toBottom`\u003c/b\u003e\n\nDetermines the orientation of the text or icon that is in a wedge. `toBottom` \nwill ensure that the bottom of each item points to the bottom of the page. \n`toCenter` will align the bottom of each item pointing to the center of the \nmenu.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://github.com/Kingdutch/react-disc-menu/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingdutch%2Freact-disc-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkingdutch%2Freact-disc-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingdutch%2Freact-disc-menu/lists"}