kinoplan / scalajs-react-material-ui

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

Version Matrix

scalajs-react-material-ui

Usage

The scalajs-react-material-ui libraries is currently available for Scala.js 0.6.33/1.1.1 and Scala 2.12.x/2.13.x.

  1. Add libraryDependencies to your scalajs-react project:

    libraryDependencies ++= Seq(
      "io.kinoplan" %%% "scalajs-react-material-ui-core"  % "0.2.1",
      "io.kinoplan" %%% "scalajs-react-material-ui-icons" % "0.2.1",
      "io.kinoplan" %%% "scalajs-react-material-ui-lab"   % "0.2.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 dev
  2. Open in browser localhost:8080

License

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