{"id":14990090,"url":"https://github.com/elgca/laminar-mdui-components","last_synced_at":"2025-10-12T08:32:45.364Z","repository":{"id":245475121,"uuid":"818251056","full_name":"elgca/laminar-mdui-components","owner":"elgca","description":"Laminar Bindings for MDUI Web Components","archived":false,"fork":false,"pushed_at":"2024-06-22T13:16:24.000Z","size":1151,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T10:29:22.147Z","etag":null,"topics":["laminar","mdui","scala-facades","scalajs","web-components"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elgca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-06-21T12:30:43.000Z","updated_at":"2024-12-13T18:38:38.000Z","dependencies_parsed_at":"2024-06-22T09:43:46.773Z","dependency_job_id":"5cac4f46-12fb-48e4-88f5-5600f8bab75f","html_url":"https://github.com/elgca/laminar-mdui-components","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"900992f7055d89ce742a3f5c26094e1b32148293"},"previous_names":["elgca/laminar-mdui-components"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/elgca/laminar-mdui-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elgca%2Flaminar-mdui-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elgca%2Flaminar-mdui-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elgca%2Flaminar-mdui-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elgca%2Flaminar-mdui-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elgca","download_url":"https://codeload.github.com/elgca/laminar-mdui-components/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elgca%2Flaminar-mdui-components/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010792,"owners_count":26084807,"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-10-12T02:00:06.719Z","response_time":53,"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":["laminar","mdui","scala-facades","scalajs","web-components"],"created_at":"2024-09-24T14:19:26.681Z","updated_at":"2025-10-12T08:32:45.346Z","avatar_url":"https://github.com/elgca.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.mdui.org/\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/zdhxiong/mdui/953011ce2911e2e64b6cb242729df82664f6a78a/packages/jetbrains-plugin/src/main/resources/META-INF/pluginIcon.svg\" alt=\"mdui logo\" width=\"165\" height=\"165\"/\u003e\n  \u003c/a\u003e\n\u003cspan style=\"font-size: 50px; text-align: center\"\u003e For \u003c/span\u003e\n  \u003ca href=\"https://laminar.dev/\"\u003e\n    \u003cimg src=\"https://laminar.dev/img/brand/laminar-logo-100px-rounded.png\" alt=\"mdui logo\" width=\"165\" height=\"165\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eLaminar Bindings for MDUI Web Components\u003c/h1\u003e\n\n[English](/README_EN.md)\n\n- [MDUI](https://www.mdui.org/en/docs/2/) :  A Material Design 3 (Material You) library of Web Components.\n- [Laminar](https://laminar.dev/) :  A Native Scala.js UI library\n- Dependencies Version\n  - Scala 3.4.2\n  - ScalaJs 1.16.0\n  - Laminar 17.0.0\n\n\n这是一个MDUI到Laminar的绑定，MDUI是一个不错的UI库, 基于web components，不依赖任何框架。\n非常适合作为一个通用组件库使用。\n\n这个项目包含两个模块\n\n- 跟目录src下的代码生成器，jvm的代码生成器，这里大部分代码来自[laminar-shoelace-components](https://github.com/raquo/laminar-shoelace-components)的Generator\n- mdui下的scalajs，用于发布的scalajs项目，自动生成的绑定将会被放入这个工程，便于发布\n\n# 做了哪些工作\n\n- 移除了原先为shoelaces定义的大部分规则，去掉部分的硬代码。\n- 尽量采用custom-elements.json中的逻辑进行自动生成\n- 对支持的类型进行了调整,枚举属性的支持得到了很好的支持\n- 增加了@mdui/icon的单独编译处理,可以像使用Laminar的标签一样使用\n\n生成的代码并没有进行完全的测试，可能存在部分属性不完全，\n完全是基于mdui的custom-elements.json生成的。但是效果很棒, 源码的质量很高\n\n# 如何使用\n\nsbt :\n\n```scala\nlibraryDependencies += \"io.github.elgca\" %%% \"laminar-mdui\" % \"0.2.0\"\n```\n\n编译\n```shell\nnpm install\nsbt run\n```\n\n使用\n\n```scala\nimport elgca.laminar.components.mdui\n\nmdui.Button(\n    _.variant.elevated,\n    \"This is Button\"\n)\n\n//使用Icon\n\nmdui.Button(\n    _.slots.icon(\n        mdui.Icon(_.name := \"360\")\n    )\n)\n\n//Or\n\nmdui.Button(\n  _.slots.icon(\n    mdui.icon.Icon10mp()\n  )\n)\n\n```\n\n# License\n\nThis project is provided under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felgca%2Flaminar-mdui-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felgca%2Flaminar-mdui-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felgca%2Flaminar-mdui-components/lists"}