{"id":13525082,"url":"https://github.com/prateekbh/preact-material-components","last_synced_at":"2025-05-16T06:06:38.226Z","repository":{"id":49514293,"uuid":"82581631","full_name":"prateekbh/preact-material-components","owner":"prateekbh","description":"preact wrapper for \"Material Components for the web\"","archived":false,"fork":false,"pushed_at":"2020-11-28T11:08:04.000Z","size":96925,"stargazers_count":555,"open_issues_count":59,"forks_count":82,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-09T21:37:48.885Z","etag":null,"topics":["material-components","preact","preact-components"],"latest_commit_sha":null,"homepage":"https://material.preactjs.com","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/prateekbh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-02-20T17:01:45.000Z","updated_at":"2025-05-04T20:25:09.000Z","dependencies_parsed_at":"2022-09-01T03:01:02.418Z","dependency_job_id":null,"html_url":"https://github.com/prateekbh/preact-material-components","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekbh%2Fpreact-material-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekbh%2Fpreact-material-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekbh%2Fpreact-material-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekbh%2Fpreact-material-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prateekbh","download_url":"https://codeload.github.com/prateekbh/preact-material-components/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253398108,"owners_count":21902037,"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":["material-components","preact","preact-components"],"created_at":"2024-08-01T06:01:15.793Z","updated_at":"2025-05-16T06:06:33.216Z","avatar_url":"https://github.com/prateekbh.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Uncategorized","Material Components Web (MDC Web)"],"sub_categories":["Uncategorized","MDC Web Framework Integrations"],"readme":"# preact-material-components\n\n## Deprecation Notice\nThis repo only works with Preact 8 or lower. The work for preact X+ compatibility was unfortunately suspended due to the given lack of maintainers and their time.\n\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/prateekbh/preact-material-components.svg)](https://greenkeeper.io/)\n[![Dependencies badge](https://david-dm.org/prateekbh/preact-material-components.svg)](https://david-dm.org/)\n[![build](https://api.travis-ci.org/prateekbh/preact-material-components.svg?branch=master)](https://api.travis-ci.org/prateekbh/preact-material-components.svg?branch=master)\n\npreact components for [material-components-web](https://material.io/develop/web)\n\n---\n\nThese components bring material components in an a-la-carte fashion.\nYou can use `n` number of components without taking the weight of any extra code of the components you do not use.\n\n`preact-material-components` is a thin opinion-less wrapper over [material-components-web](https://github.com/material-components/material-components-web/tree/master/packages). Use these for painless integration of these components into your project, without taking the bloat.\n\nSmaller bundles FTW!!!\n\n## Which distribution to use\n\nThere are now three distributions:\n\n#### Default Build\n\nLocation: Package Root / `preact-material-components/\u003cComponent\u003e`\n\nWho?\n\n- Libraries: ✖ (Users should decide about transpilation themselves)\n- Applications: ✔\n\nSupport:\n\nThis supports all browsers supported by mwc, JavaScript and TypeScript\n\n#### ES Module Build\n\nLocation: `esm` directory / `preact-material-components/esm/\u003cComponent\u003e`\n\nWho?\n\n- Libraries: ✔\n- Applications: ✔\n\nSupport:\n\nThis supports most recent browsers, JavaScript and TypeScript\n\n#### TypeScript Source\n\nLocation: `ts` directory / `preact-material-components/ts/\u003cComponent\u003e`\n\nWho?\n\n- Libraries: (✔) (Not recommended, keep in mind that your library will only support TypeScript)\n- Applications: ✔\n\nSupport:\n\nBrowser support depends on transpilation/TypeScript configuration and only TypeScript is supported.\n\n## FAQ\n\n### Error while using preact-material-components with **less**\n\nIf you are using less-loader you have to set **strictMath: true** option in your webpack config\n\n```\n{\n\tloader: 'less-loader',\n\toptions: { strictMath: true }\n}\n```\n\n### Primary and Secondary props not working\n\nTo use theming props like primary/secondary, you'll need to include Theme's css\n\n```\nimport 'preact-material-components/Theme/style.css';\n```\n\n## Docs and Demos\n\nhttps://material.preactjs.com/\n\n---\n\n**P.S.:** Let us know if you're using `preact-material-components` we would love to hear your experiences.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateekbh%2Fpreact-material-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprateekbh%2Fpreact-material-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateekbh%2Fpreact-material-components/lists"}