{"id":30577030,"url":"https://github.com/mvsmal/fable-material-ui","last_synced_at":"2025-08-29T02:03:10.807Z","repository":{"id":33089792,"uuid":"142883120","full_name":"mvsmal/fable-material-ui","owner":"mvsmal","description":"Fable bindings for Material-UI https://mvsmal.github.io/fable-material-ui/","archived":false,"fork":false,"pushed_at":"2022-12-09T14:20:47.000Z","size":15496,"stargazers_count":61,"open_issues_count":37,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-20T03:17:12.866Z","etag":null,"topics":["fable","fsharp","material-ui"],"latest_commit_sha":null,"homepage":"","language":"F#","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/mvsmal.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":"2018-07-30T13:59:00.000Z","updated_at":"2022-12-01T04:51:32.000Z","dependencies_parsed_at":"2022-07-24T17:47:10.671Z","dependency_job_id":null,"html_url":"https://github.com/mvsmal/fable-material-ui","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/mvsmal/fable-material-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvsmal%2Ffable-material-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvsmal%2Ffable-material-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvsmal%2Ffable-material-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvsmal%2Ffable-material-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvsmal","download_url":"https://codeload.github.com/mvsmal/fable-material-ui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvsmal%2Ffable-material-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272607488,"owners_count":24963748,"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-29T02:00:10.610Z","response_time":87,"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":["fable","fsharp","material-ui"],"created_at":"2025-08-29T02:01:20.195Z","updated_at":"2025-08-29T02:03:10.776Z","avatar_url":"https://github.com/mvsmal.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/Fable.MaterialUI.svg)](https://www.nuget.org/packages/Fable.MaterialUI/) [![](https://img.shields.io/travis/com/mvsmal/fable-material-ui.svg)](https://travis-ci.com/mvsmal/fable-material-ui)\n\n# Fable.MaterialUI\n\nFable bindings for [Material-UI](https://material-ui.com)\n\n# Installation\n\u003cp class=\"description\"\u003eInstall Fable bindings for Material-UI\u003c/p\u003e\n\n## Nuget\nFable Material-UI is available as [Nuget package](https://www.nuget.org/packages/Fable.MaterialUI/)\n```sh\ndotnet add package Fable.MaterialUI\n```\nor\n```sh\npaket add Fable.MaterialUI\n```\n\n## NPM\nYou also need to install [Material-UI](https://material-ui.com/getting-started/installation/) npm package\n```sh\nnpm install @material-ui/core\n```\nor\n```sh\nyarn add @material-ui/core\n```\n\n# Usage\n\u003cp class=\"description\"\u003eHow to use the bindings\u003c/p\u003e\n\nSimply open Fable.MaterialUI.Core and Props module\n```fsharp\nopen Fable.MaterialUI.Core\nopen Fable.MaterialUI.Props\n```\nThere are several components, such as `button`, which are also present in `Fable.Helpers.React`. To avoid conflicts you can assign module names:\n```fsharp\nmodule R = Fable.Helpers.React\nmodule Mui = Fable.MaterialUI.Core\n```\n\n## Minimal example\n```fsharp\nmodule R = Fable.Helpers.React\nmodule Mui = Fable.MaterialUI.Core\nopen Fable.MaterialUI.Props\n\nlet view =\n    Mui.button [\n        ButtonProp.Variant ButtonVariant.Contained\n    ] [ R.str \"Hello world!\" ]\n```\n\n# Migration to version 2\n\n## Required dependency\nFable.MaterialUI v2 works only with **dotnet-fable** \u003e [2.0.6](https://www.nuget.org/packages/dotnet-fable/2.0.6)\n\nMake sure to use the correct version\n\n## Breaking changes\n\n`Styles.Custom` is now a function and has the signature: `string * CSSProp list -\u003e Styles`. You don't need to manually convert the list of CSS props to an object\n\nPredefined `Styles` props matching class keys are moved to a nested module `Themes.Styles` and require either `open Fable.MaterialUI.Themes.Styles` or qualified access, e.g. `Styles.Root`\n\n`TransitionDuration` is removed from:\n* MenuProp\n* PopoverProp\n* StepContentProp\n\nand moved to `MaterialProp.TransitionDurationAuto` (compiled to `transitionDuration` but allows to pass `AutoEnum.Auto`)\n\n## Other\nSince `keyValueList` function is not recursive in Fable 2, there are several properties which have now been replaced with functions, converting a list of DU cases to an object. The usage of those props stays the same, except `Styles` (see above).\n\n# Build\n\n## Dependencies\n\nTo build the project you need Paket and FAKE installed as dotnet global tool:\n```\ndotnet tool install paket -g\ndotnet tool install fake-cli -g\n```\n\nThen run:\n```\npaket restore\nfake build\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvsmal%2Ffable-material-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvsmal%2Ffable-material-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvsmal%2Ffable-material-ui/lists"}