/scalajs-react-material-ui

Scala.js wrapper of http://material-ui.com for use with https://github.com/japgolly/scalajs-react

Primary LanguageScalaMIT LicenseMIT

scalajs-react-material-ui

scalajs-react facade developed with scalajs-react-bridge for @material-ui/core, @material-ui/icons, @material-ui/lab

Scala CI Maven Central Scala Scala.js react scalajs-react material-ui

Usage

  1. Add libraryDependencies to your scalajs-react project:

    libraryDependencies ++= Seq(
      "io.kinoplan" %%% "scalajs-react-material-ui-core"  % "0.0.1",
      "io.kinoplan" %%% "scalajs-react-material-ui-icons" % "0.0.1",
      "io.kinoplan" %%% "scalajs-react-material-ui-lab"   % "0.0.1"
    )
  2. Add npmDependencies using scalajs-bundler:

    npmDependencies in Compile ++= Seq(
      "@material-ui/core"  -> "3.9.0",
      "@material-ui/icons" -> "3.0.2",
      "@material-ui/lab"   -> "3.0.0-alpha.30"
    )

Demo

See the demo project.

The project has almost all the examples in the js Component Demos written in Scala!

In the demo you can also find very detailed examples of using a bunch of:

Start:

  1. sbt
  2. restartWDS
  3. Open in browser localhost:8080

License

This project is licensed under the terms of the MIT license.