Reason bindings for material-ui.
🚧 This is a WIP, not everything is supported yet. 🚧
Feel free to create an issue or PR if you find anything missing.
yarn add bs-material-ui
yarn add material-ui@next
Then add bs-material-ui
to bs-dev-dependencies
in your bsconfig.json
:
{
...
"bs-dev-dependencies": ["bs-material-ui"]
}
let component = ReasonReact.statelessComponent("Header");
let make = (_children) => {
...component,
render: (_self) =>
<MaterialUI.AppBar position="static" color="default">
<MaterialUI.Toolbar>
<MaterialUI.Typography
_type="title" color=MaterialUI.Typography.Color.Inherit>
(ReasonReact.stringToElement("Title"))
</MaterialUI.Typography>
</MaterialUI.Toolbar>
</MaterialUI.AppBar>
};
let component = ReasonReact.statelessComponent "Header"
let make _children =
{
component with
render =
(fun _self ->
((MaterialUI.AppBar.createElement ~position:"static"
~color:"default"
~children:[((MaterialUI.Toolbar.createElement
~children:[((MaterialUI.Typography.createElement
~_type:"title"
~color:MaterialUI.Typography.Color.Inherit
~children:[ReasonReact.stringToElement
"Title"] ())[@JSX ])]
())[@JSX ])] ())[@JSX ]))
}
It is not recommended to open this module as it will clash with other modules.
If you wish to do so please be aware that theList
component will clash with the standard libraryList
module.