{"id":14990089,"url":"https://github.com/grayhatdevelopers/material-web-components-react","last_synced_at":"2025-08-07T21:12:27.755Z","repository":{"id":245980723,"uuid":"819738843","full_name":"grayhatdevelopers/material-web-components-react","owner":"grayhatdevelopers","description":"Material Web Components for React ⚛ ","archived":false,"fork":false,"pushed_at":"2024-12-17T17:12:36.000Z","size":1167,"stargazers_count":41,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T10:54:46.993Z","etag":null,"topics":["design-system","lit","lit-element","lit-html","material-design","material-ui","material-you","react","react-components","ui-components","ui-library","web","web-components","web-components-library"],"latest_commit_sha":null,"homepage":"https://material-web-components-react.grayhat.studio","language":"TypeScript","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/grayhatdevelopers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-25T05:41:07.000Z","updated_at":"2025-05-28T07:19:26.000Z","dependencies_parsed_at":"2024-09-24T16:00:05.831Z","dependency_job_id":"3ae31b47-237a-4d11-9c49-3900fb74859c","html_url":"https://github.com/grayhatdevelopers/material-web-components-react","commit_stats":{"total_commits":116,"total_committers":4,"mean_commits":29.0,"dds":0.08620689655172409,"last_synced_commit":"8672c30400997c1683b504888c46ef6a22b46e05"},"previous_names":["grayhatdevelopers/material-web-react"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/grayhatdevelopers/material-web-components-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayhatdevelopers%2Fmaterial-web-components-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayhatdevelopers%2Fmaterial-web-components-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayhatdevelopers%2Fmaterial-web-components-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayhatdevelopers%2Fmaterial-web-components-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grayhatdevelopers","download_url":"https://codeload.github.com/grayhatdevelopers/material-web-components-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayhatdevelopers%2Fmaterial-web-components-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269324717,"owners_count":24398045,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["design-system","lit","lit-element","lit-html","material-design","material-ui","material-you","react","react-components","ui-components","ui-library","web","web-components","web-components-library"],"created_at":"2024-09-24T14:19:26.602Z","updated_at":"2025-08-07T21:12:27.707Z","avatar_url":"https://github.com/grayhatdevelopers.png","language":"TypeScript","readme":"# Material Web Components for React\n\n[![npm version](https://badge.fury.io/js/material-web-components-react.svg)](https://www.npmjs.com/package/material-web-components-react)\n![release](https://img.shields.io/badge/release-beta-blue)\n[![docs](https://img.shields.io/badge/read%20the%20docs-8A2BE2)](https://material-web.dev)\n[![docs](https://img.shields.io/badge/live%20demo-FFA500)](https://material-web-components-react.grayhat.studio)\n\nA thin React wrapper over [@material/web](https://github.com/material-components/material-web/). Aims to be a locally-installable, accessible and customizable Material standard for React. Recommended to use with [MUI](https://mui.com/). Free. Open Source. **Looking for maintainers**.\n\n![hero](https://material-web-components-react.grayhat.studio/opengraph-image.jpg)\n\n## Installation\n\nTo use Material Web Components for React as a **library** in your project, run:\n\n```sh\nnpm install material-web-components-react\n```\n\n## Usage\n\nHere's a general example of how the components can be used:\n\n```tsx\nimport React from 'react';\nimport Button from 'material-web-components-react/button';\n\nfunction Example() {\n  return (\n    \u003cdiv\u003e\n      \u003cButton\u003eClick me\u003c/Button\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\nFor a detailed reference on usage, you might want to check out the source code of the [NextJS demo](https://github.com/grayhatdevelopers/material-web-components-react/blob/main/apps/demo/src/app/page.tsx). It's simple!\n\nUnder the hood, this library simply uses the official [@material/web](https://github.com/material-components/material-web/) components. Visit [the official Material Web Components docs](https://github.com/material-components/material-web/blob/main/docs/intro.md) to learn how to use those components. The props remain the same!\n\n## Contributing\n\n### Local Development Setup 💻\n\n1. Fork this repository\n\n2. Clone your forked copy of the project\n\n3. Change to the project directory\n\n4. To get started, ensure you have pnpm installed globally, run the following command:\n\n```\nnpm install -g pnpm\n```\n\n5. To install all project dependencies, run the following command:\n\n```\npnpm i\n```\n\n6. To build the project, run the following commands (these needs to be done only once):\n\n```\ncd packages/ui\n```\n\n```\npnpm build\n```\n\n7. Return to the monorepo root:\n\n```\ncd ../../\n```\n\n8. To run the code locally, run the following code:\n\n```\npnpm dev\n```\n\nThis will run the demo app on http://localhost:3000, and whenever you update the library, the app should rebuild\n\n### Roadmap 🚀\n\n- [ ] Make sure all native Web Components are properly working\n  - [x] Demo all components\n  - [x] Add all missing events\n  - [ ] [Need help] Add theming (design tokens) through Tailwind (i.e. remove all ts-ignores) (https://github.com/grayhatdevelopers/material-web-components-react/pull/2)\n- [x] Resolve SSR/SSG issues, make compatible with NextJS (i.e. remove all dynamic imports)\n- [x] Separate the demo from the actual UI code\n- [x] Make installable as a package.\n- [ ] [Need help] Make installable as code-in-project, like shadcn/ui, so developers have more control (https://github.com/grayhatdevelopers/material-web-components-react/pull/11)\n- [ ] [Need help] Add better TypeScript support (https://github.com/grayhatdevelopers/material-web-components-react/issues/12)\n- [ ] Sync with upstream (i.e. https://github.com/material-components/material-web/blob/main/docs/intro.md) through webhooks and automations\n  - [ ] Use [Copybara](https://github.com/google/copybara) (or good ol' GitHub webhooks) to automate syncing with upstream\n  - [ ] Use [lit-analyzer](https://www.npmjs.com/package/lit-analyzer) to see which Web Components changed. Perhaps mix with an LLM to compare existing and newly autogenerated code.\n  - [ ] Create a PR with the new Component code.\n- [ ] Mix this library with Tailwind and BaseUI in order to complete missing Components which may prove useful for building production applications\n  - [x] App Bars\n    - [x] Top App Bar\n    - [x] Bottom App Bar\n  - [x] Stack\n  - [x] Box\n  - [x] Navigation Rail\n  - [x] Container\n  - [x] Typography\n\n### Credits\n\nHuge shout out to Elizabeth Mitchell ([asyncLiz](https://github.com/asyncliz/)) and the rest of the Material Design team for their awesome Web Components implementation.\n\nThank you [Travis Reeder](https://github.com/treeder) for your Web Component implementation of Navigation Rail. I had to copy it to this project. I couldn't use yours directly because it would import `@material/web` again and bring conflicts.\n\nThanks for making the crappy, brain-dead wrapper components:\n\n- [ChatGPT](https://chatgpt.com/share/574a9601-8927-4992-884e-16c58f24a982)\n\nThanks for improving the demo:\n\n- [TalhaHere12](https://github.com/TalhaHere12)\n\nThanks for building BottomSheet and Snackbar:\n\n- [Aroonaongithhub](https://github.com/Aroonaongithhub/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrayhatdevelopers%2Fmaterial-web-components-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrayhatdevelopers%2Fmaterial-web-components-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrayhatdevelopers%2Fmaterial-web-components-react/lists"}