Package

purescript-react-material-ui

Repository
nwolverson/purescript-react-material-ui
License
MIT
Uploaded by
nwolverson
Published on
2017-08-13T13:58:15Z

Wrappers to use Material UI components with purescript-react.

Supported material-ui version: v1.0.0-beta - for 0.18.7 see 0.1.0 release.

Wrappers auto-generated from prop/flow-types using react-docgen via purescript-react-wrapper-gen.

Usage

Each component is contained in its own module, e.g. MaterialUI.Button, and exposes an element factory, e.g. button, taking an options object for props and children array.

  Button.button (
    Button.raised := true
 <> Button.dense := true
  ) [
      D.text "Clicky button"
    ]
  ]

See test example.

API documentation is available on Pursuit.