All Projects → mvsmal → Fable Material Ui

mvsmal / Fable Material Ui

Licence: mit
Fable bindings for Material-UI https://mvsmal.github.io/fable-material-ui/

Programming Languages

fsharp
127 projects

Projects that are alternatives of or similar to Fable Material Ui

Feliz.MaterialUI.MaterialTable
Fable bindings written in the Feliz-style for material-table.
Stars: ✭ 17 (-71.67%)
Mutual labels:  fable, material-ui
Fable Elmish Electron Material Ui Demo
Complete boilerplate for Electron apps using Fable and Elmish with hot module reloading, time-travel debugging, etc.
Stars: ✭ 101 (+68.33%)
Mutual labels:  fable, material-ui
Feliz.materialui
Feliz-style Fable bindings for Material-UI
Stars: ✭ 42 (-30%)
Mutual labels:  fable, material-ui
Feliz.MaterialUI
Feliz-style Fable bindings for Material-UI
Stars: ✭ 57 (-5%)
Mutual labels:  fable, material-ui
Materialdesignlite
This project prime goal is to bind the google's Material Design Lite project to Seaside and as second goal to build widgets on top of Material Design to help Seaside developers to create web applications with material design faster.
Stars: ✭ 30 (-50%)
Mutual labels:  material-ui
Cameria Facial Recognition
A react-redux based progressive web application that makes use of material-ui to enable facial recognition
Stars: ✭ 32 (-46.67%)
Mutual labels:  material-ui
Luna
Manage npm dependencies through a modern UI.
Stars: ✭ 948 (+1480%)
Mutual labels:  material-ui
Elephant
Elephant is PHPHub Community Android unofficial client, base on Material Design + MVP+RxJava+Retrofit .
Stars: ✭ 949 (+1481.67%)
Mutual labels:  material-ui
Catify
Utility for Spotify, even your cat can use Spotify now !
Stars: ✭ 59 (-1.67%)
Mutual labels:  material-ui
Fable.simplehttp
Http with Fable, made simple.
Stars: ✭ 57 (-5%)
Mutual labels:  fable
Veluxi Starter
Veluxi Vue.js Starter Project with Nuxt JS and Vuetify
Stars: ✭ 39 (-35%)
Mutual labels:  material-ui
Electra
A desktop application for test account managment
Stars: ✭ 32 (-46.67%)
Mutual labels:  material-ui
Vuetify Material Dashboard
Vuetify Material Dashboard - Open Source Material Design Admin
Stars: ✭ 1,023 (+1605%)
Mutual labels:  material-ui
Ct Vue Material Dashboard Pro
Vue Material Dashboard Pro - Material Design Admin
Stars: ✭ 58 (-3.33%)
Mutual labels:  material-ui
Future Web
Starter kit to create PWA with cutting edge technologies
Stars: ✭ 38 (-36.67%)
Mutual labels:  material-ui
Web3studio Sojourn
A React Native DevKit with code for a Web3 Decentralized Data Storage Pattern.
Stars: ✭ 29 (-51.67%)
Mutual labels:  material-ui
Material Ui Password Field
A password field using Material-UI.
Stars: ✭ 54 (-10%)
Mutual labels:  material-ui
Nestpress
A production ready personal blogging system on top of NestJS and NEXT.js
Stars: ✭ 38 (-36.67%)
Mutual labels:  material-ui
Seven23
Fully manual budget app to track personal expenses. 100% opensource, with privacy by design.
Stars: ✭ 36 (-40%)
Mutual labels:  material-ui
React Material Admin
☄️React Material Admin is a React template built with Material-UI
Stars: ✭ 1,005 (+1575%)
Mutual labels:  material-ui

Fable.MaterialUI

Fable bindings for Material-UI

Installation

Install Fable bindings for Material-UI

Nuget

Fable Material-UI is available as Nuget package

dotnet add package Fable.MaterialUI

or

paket add Fable.MaterialUI

NPM

You also need to install Material-UI npm package

npm install @material-ui/core

or

yarn add @material-ui/core

Usage

How to use the bindings

Simply open Fable.MaterialUI.Core and Props module

open Fable.MaterialUI.Core
open Fable.MaterialUI.Props

There are several components, such as button, which are also present in Fable.Helpers.React. To avoid conflicts you can assign module names:

module R = Fable.Helpers.React
module Mui = Fable.MaterialUI.Core

Minimal example

module R = Fable.Helpers.React
module Mui = Fable.MaterialUI.Core
open Fable.MaterialUI.Props

let view =
    Mui.button [
        ButtonProp.Variant ButtonVariant.Contained
    ] [ R.str "Hello world!" ]

Migration to version 2

Required dependency

Fable.MaterialUI v2 works only with dotnet-fable > 2.0.6

Make sure to use the correct version

Breaking changes

Styles.Custom is now a function and has the signature: string * CSSProp list -> Styles. You don't need to manually convert the list of CSS props to an object

Predefined 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

TransitionDuration is removed from:

  • MenuProp
  • PopoverProp
  • StepContentProp

and moved to MaterialProp.TransitionDurationAuto (compiled to transitionDuration but allows to pass AutoEnum.Auto)

Other

Since 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).

Build

Dependencies

To build the project you need Paket and FAKE installed as dotnet global tool:

dotnet tool install paket -g
dotnet tool install fake-cli -g

Then run:

paket restore
fake build
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].