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@1.0.0-beta.19
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">
<Toolbar>
<Typography _type="title" color="inherit">
(ReasonReact.stringToElement("Title"))
</Typography>
</Toolbar>
</AppBar>
)
};